Previous Message
Next Message

Header positioning

Sent by Gary Turner on 25 April 2005 00:12


Gary Turner wrote:
> Arnie Shafer wrote:
> 
>> Could someone please explain <snip>
> 
> Try this;
> 
> <p style="text-align: center; <snip>

Then Arnie wrote [off list]

 > <snip>
 > Question - Shouldn't the style components be in the style sheet?

As a rule, yes.  I inlined them for example purposes.  It is up to you 
to determine how these elements should be selected.

 > I don't understand the overflow, how does it clear the floats? <snip>"

This is one of those esoteric and arcane bits of knowledge shared only 
among those of advanced learning and wisdom. So, if I told you, I'd have 
to ... ;)

Look at <http://www.w3.org/TR/CSS21/visudet.html#root-height>. 
Basically this means that if the {height: auto;}, the default, and 
{overflow: auto;}[1] (the default is 'visible'), then the container will 
expand to contain descendant floats if those floats are descended from 
in-the-flow elements.

cheers,

gary

[1] I've found that {overflow: hidden;} works as well.  I haven't 
checked {overflow: scroll;} as I see no point.
-- 
Anyone can build a usable web site.  It takes a graphics designer to
make it slow, confusing, and painful to use.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: