> a selector of "p" 
> would be sufficient to uniquely identify the needed
> element.  But let's 
> say there's another paragraph elsewhere on the page;
> in that case, 
> "#header p" would be sufficient because #header has
> to be unique if 
> you're using valid markup.

Great explanation! I pretty much have this wrapped up
with the last explanation. I wanted to expound on my
situation and ask for additional feedback.

My experimental exercise relates to creating HTML
newsletter and how webmail script render HTML and CSS.
My interests do not fall into HTML vs plain text email
discussion. This exercise is valid and educational in
purpose. 

Even after reading about StyleinEmail, the topic is
still allusive especially in Gmail. I began a trial
and error process in styling approaches. Then I
captured the webmail client’s rendition. The HTML
documents reaffirm several points in StyleinEmail; yet
open additional discrepancies. Webmail clients have
better support for CSS then the StyleinEmail alludes.
Their shortcomings relate to how their scripts rewrite
HTML newsletters.  Their stylesheets often over-ride
your inline stylesheet. In other scenarios, it just
strips your font-family declarations. Each webmail
client handles it in a different manner. 

My question about descendant selector relates to
styles that do not become overridden by the webmail.
As mentioned StyleinEmail, you may need verbose
attributes in your html for maximum compatibility.

Gmail strips IDs and classes from HTML emails;
font-family from inline styles. However, it keeps
font-size in inline style; and <font face=”x”
size=”x”> tag. 

Hotmail and Yahoo fair better with CSS merging inline
stylesheets with its own style sheet. So my questions
relate to descendant selectors in a vast complicated
stylesheet. 

Would #myheader p suffice as original situation
described? 

> #myContainer table tr td p
Or do I need verbose style declaration?

Could you simplify to #myContainer p { }; or #myheader
td { }?

Would these styles override #message p { } created
webmail?
(#message would wrap #myContainer) 

This topic is not for the faint hearted. Please add
whatever insight you feel relevant.



                
__________________________________ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to