[thelist] CSS: font-size fun!
Dougal Campbell
dougal at gunters.org
Wed Aug 21 10:21:01 CDT 2002
On Wed, 21 Aug 2002, Ken Kogler wrote:
> I've got:
>
> div #content {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: xx-small;
> }
First of all, are you sure you didn't mean "div#content" (note the lack
of a space)? What you have above will only apply to an element with
id="content" that is a child of a div. I'm guessing that you instead
meant specifically a div with id="content". But no matter....
> The problem is, #content very well may have tables, lists and all sorts
> of other stuff in it later on down the road that I haven't anticipated
> yet. Right now, they're showing up as the default font size, which is
> larger than the specified one in my CSS.
>
> Can I say "all tags within #content must obey this font-size rule", or
> am I stuck writing out each one (div #content li, div #content td, etc)?
Try "#content,#content * {...}"
I don't remember which browsers support the wildcard, but I think it's
most of them.
--
Ernest MacDougal Campbell III, MCP+I, MCSE <dougal at gunters.org>
http://dougal.gunters.org/ http://spam.gunters.org/
Web Design & Development: http://www.mentalcollective.com/
This message is guaranteed to be 100% eror frea!
More information about the thelist
mailing list