[BNM] CSS Structure [was timesonline - a css travesty?]
Dan Eastwell
daneastwell at gmail.com
Thu Mar 1 11:06:48 GMT 2007
As long as you keep track of what an em means at any point, you
shouldn't really need extra formatting divs. If you apply relative
font sizing to the body, and then to individual classes of/types of
element they should be less difficult to control than applying font
sizes to the body and then to content containers.
You can apply overrides if you are seeing font-scaling on, say li li
li in a nested list, if you've applied style to all lis.
That wasn't particularly clear, was it! Read Richard Rutter's stuff on
http://webtypography.net/ and
http://clagnut.com/blog/348/ Which covers font-sizing in a nutshell.
It doesn't cover reapplication of font-sizing through inheritance,
though.
Cheers,
Dan.
On 3/1/07, Antony Jones <antonyj at gamesys.co.uk> wrote:
> > body.section-3 div.sub-content form#search-form
> >
> > I guess that's my point - managing things that
> >
> > a) do the same thing
> > b) look similar but do different things
> > c) look similar but slightly different in a different place on the
> page,
> > and
> > d) look similar but slightly different in a different place on the
> site.
> >
>
> The funny thing here is, if you do as I do, and design all your sites
> with EMs, you can't put font-sizes on objects which have sub-objects
> (because it changes the size of an EM for everything within that object.
> SO you have to enclose things with pointless DIVs called 'format' or
> similar, and apply sizing to those divs alone.
>
--
Daniel Eastwell
Portfolio and articles:
http://www.thoughtballoon.co.uk
Blog:
http://www.thoughtballoon.co.uk/blog
More information about the BNMlist
mailing list. Powered by Wessex Networks