Clicked on your link Alasdair - it wanted me to run an exe right there and
then - whoa - scary
Besides, I'm aiming to understand how to use css, rather than use a tool,
but thanks anyway.
Mike p
-----Original Message-----
From: A discussion list for Assistive Technology professionals.
[mailto:[log in to unmask]] On Behalf Of Alasdair King
Sent: 27 October 2009 23:15
To: [log in to unmask]
Subject: Re: Using style sheets for accessibility
Mike:
Neel is correct, you need to remove the <STYLE> sections if it's an
external .css file.
You have duplicate entries for BODY.
You have an orphan section - the second { section.
Every style rule must end with a semicolon - you miss a couple out.
No space between the exclamation character and important where you use it.
Finally, shameless plug time. If you install WebbIE you'll find a
program called I.E. Appearance Editor. This provides a simple UI to
let you choose font size, zoom, and colours, and creates the
appropriate CSS file and configures IE to use it:
http://download.webbie.org.uk/WebbIE3-Installer.msi
Best wishes,
Alasdair King
WebbIE
Skype Alasdairking
On Tue, Oct 27, 2009 at 4:05 PM, Neel Shearer <[log in to unmask]>
wrote:
> 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
> ______________________________________________________________________
>
--
Alasdair King
|