[mythtv] Mythweb font size and color
Chris Strom
mythtv at eeeCooks.com
Thu Feb 10 10:44:53 UTC 2005
On Thu, Feb 10, 2005 at 08:54:42AM +0000, Ashley Bostock wrote:
> Main problem with using percentages and em, etc... is that its all
> inherited which makes life so much harder. As soon as you use any
> nested tags you run the risk of fonts either being way too large in
> some areas or too small in others, as you get font sizes that are
> percentages of percentages... nightmare.
Then don't specify font size on tags, only on ID selectors (as is being
done in mythweb). To set the font for the body of a page, encapsulate the
page in a <div id="main-body"> tag, then set the CSS selector to:
#main-body { font-size: 80% }
That way you never have to worry about nested tags - there can be only
one... with a given ID.
-Chris
More information about the mythtv-dev
mailing list