Hi Mike,
I am not sure you need the <style> openers and closures if it is a
separate style sheet file - see examples at
http://www.w3schools.com/css/css_syntax.asp
I noticed there is a missing slash on the opening comment - should be
/* Sets the text
... and an extra '*' at the start of line 34
... there are also two conflicting BODY styles.
Having said that, I saved it as 'style.css' and loaded into IE8 and it
seems to work for me. Very red!
N.
On 27/10/2009 14:33, Mike Parry wrote:
> I've been trying to get the following CSS2 style sheet to work with IE v8, (Tools>Internet Options>Accessibility>User Style Sheet) but it doesn't want to. I got the css code off the web, but perhaps I haven't top and tailed it correctly? Any comments gratefully received, even one's that can barely disguise their exasperation at my unwillingness to learn the code properly before trying to implement it!
>
>
> Mike P
>
>
> ---- start ----
>
>
> * Sets the text color to black and the background color to white for the document body.
>
> */
>
> <STYLE type="text/css">
>
>
> BODY { color: black ! important ; background: blue ! important }
>
> /* Causes the values of 'color' and 'background' to be inherited by all other elements, strengthened by !important. Note that this may be overridden by other, more specific, user styles. */
>
>
> { color: inherit ! important ; background: inherit ! important }
>
>
> P { font-size: 64pt ! important }
>
> /*
> Sets the text color to black
> and the background color to
> white for the document body.
> */
>
> BODY {
> color: black ! important ;
> background: red ! important
> }
>
> /*
> Causes the values of 'color' and 'background'
> to be inherited by all other elements,
> strengthened by !important. Note that this
> may be overridden by other, more specific,
> user styles.
> */
>
> * {
> color: inherit ! important ;
> background: inherit ! important
> }
>
>
> :focus { outline: thick solid black }
> :active { outline: thick solid red }
>
>
>
> DIV.example:after {
> content: End Example
> }
>
> P:before {
> content: counter(paragraph) ". " ;
> counter-increment: paragraph
> }
>
> H1 {
> voice-family: paul;
> stress: 20;
> richness: 90;
> cue-before: url("ping.au")
> }
>
> IMG:after { content: attr(alt) }
>
>
> </STYLE>
>
>
> ----- end -----
>
>
> ---
> This transmission is confidential and may be legally privileged. If you receive it in error, please notify us immediately by e-mail and remove it from your system. If the content of this e-mail does not relate to the business of the University of Huddersfield, then we do not endorse it and will accept no liability.
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
|