|
Posted by Mike Barnard on 05/03/07 18:43
On Thu, 03 May 2007 02:16:05 -0500, Ben C <spamspam@spam.eggs> wrote:
>On 2007-05-02, Mike Barnard <m.barnard.trousers@thunderin.co.uk> wrote:
>> Hi.
>>
>> This is such a basic question, I know. I can't seem to get my thick
>> head around the way browsers lay out blocks and elements.
I've been researching!
>The problem is that #branding is a float with auto-width. It therefore
>gets its shrink-to-fit width, which is just wide enough for the image
>and the text. The text is "centered" in that space, but since the space
>is only just big enough for the text anyway, the effect is negligible.
>The problem can be solved by adding width: 100% or with: 760px to the
>selector for #branding.
>But dorayme's suggestion is better. Why make #branding a float at all?
Good questions and all is now changed. I had been cut and pasting
without really understanding what was happening, but I have spent most
of today reading about the normal flow of an HTML document. I believe
I now have a handle on it.
I hope.
Thanks for taking the time to reply.
Navigation:
[Reply to this message]
|