HighDots Forums  

Re: override style in parent element

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: override style in parent element in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Stone
 
Posts: n/a

Default Re: override style in parent element - 08-10-2006 , 10:42 AM






In article <1155224124.155385.188840 (AT) 75g2000cwc (DOT) googlegroups.com>,
mjansen.merge.emed (AT) gmail (DOT) com wrote:

Quote:
Is there a way to override inline within the <body> a style of an
element but not do it with a style attribute on the element? I know
CSS Inheritance works for some styles, but doesn't appear to work for
margins, etc.
[snip]

So somewhere at POINT A, I'd like to insert something that affects the
style of the embedded <p> tag that I don't have control over. Could I
just insert some java script to save and restore the <p> style ? Other
options?
From the html 4 specs, section 14.2.2:

Attribute definitions
style = style [p.57] [CN] [p.49]
This attribute specifies style information for the current element.
The syntax [p.57] of the value of the style attribute is determined by
the default style sheet language [p.186] . For example, for [[CSS2]]
inline style, use the declaration block syntax described in section
4.1.8 (without curly brace delimiters).


- which I think does what you're looking for?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.