Jim Albert wrote: > Is there a way to redefine P but only for a portion of the HTML of a > page?
If you mean something like... p { font-size: small; font-family: verdana, arial, helvetica, sans-serif; } #sidebar p {font-size: x-small;} ...then that's how all paragraphs are given 'small' font-size, except in the sidebar where paragraphs are given 'extra small' font-size. All paragraphs in the page are rendered in 'font-family: verdana, arial, helvetica, sans-serif;'. You use containers with an ID or CLASS you can address the exceptions through - in my example a #sidebar in a page. You can also use "the nesting depth" in addressing, so... p { font-size: small; font-family: verdana, arial, helvetica, sans-serif; } ...goes for all paragraphs in the page, except for those paragraphs that are inside 2 or more nested divs, as they get... div div p {font-size: x-small;} ...and paragraphs inside 4 or more divs can then be given... div div div div p {font-size: small;} ...the original font-size again - or some other value. More complex addressing is possible with more advanced CSS selectors, but if you have to support IE6, and maybe even older, then you'll run into problems with unsupported selectors. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/