On Tuesday, April 19, 2005, 3:47:44 PM, samcctan wrote:


s> Hi all,

s> If one of the attibutes, for example the colour (fill) of a rect is set
s> to be in red "<rect x="20" y="20" width="100" height="100" 
s> style="fill:red"/>. Is it possible for us to change the colour in a 
s> separate stylesheet (CSS) by using this?

s> .rect{fill:pink}

No. To see why, read the CSS2 specification on 'specificity'. The style
attribute has a very high specificity.

Now, if instead of style="fill:red" you wrote fill="red" then the
specificity would be lower (in fact, zero) so your style rule would take
effect.

s> So far, I understand it won't work. Is there anyway we could change the
s> attibutes (colour, stroke, stoke-width, etc.) in a separate stylesheet
s> even though they have been set to certain attributes?




-- 
 Chris Lilley                    mailto:[EMAIL PROTECTED]
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to