Sent by Tim Luoma on 2 August 2002 16:04
Austin, Darrel wrote:
> In the faith of full disclosure, there is one table on the site. RUST Randal
> pointed out that I have to use a table if I want the horizontal navigation
> bar's 'buttons' to have a consistent height, I need to go with the table.
Couldn't they be DIVs with a set height, all floated left with a
<br style="clear: left;" />
at the end to make sure all the content goes under them?
TjL
From [EMAIL-REMOVED] Fri Aug 2 16:58:26 2002
From: [EMAIL-REMOVED] (Peter Bowyer)
Date: Fri Aug 2 15:58:26 2002
Subject: [css-d] Mozilla Problem
In-Reply-To: [EMAIL-REMOVED]>
References: [EMAIL-REMOVED]>
Message-ID: [EMAIL-REMOVED]>
At 13:40 02/08/02 -0500, you wrote:
>Take another look a the box-model. On your wrapper div, you specified a
>margin-right. That goes *outside* of borders. So your actual box extends
>170px to the right of your blue dotted line. The child content div is
>set to a width of 100% of its parent. And it's parent, as we just noted,
>extends 170px to the right of where its border is drawn.
Ahh. I thought the margin went outside of the div AND the border. So the
borders showed the actual edge of the div, with the margin added on beyond
it. This box model is too complicated ;-)
> > width: 100%;
>Removing this from the #content definition worked for me.
OK, that fixed the problem. However, that line was added to constrain the
contents of the div in Internet Explorer when I use the floated div
technique described at realworldstyle.com to create my photo
gallery. Without it, the floated elements extend through the div to the
edge of the page (due I believe to the "wrong" interpretation of the box
model in IE). You can see this at
http://www.narrow-gauge.co.uk/gallery_demo.html
I seem to be going round in circles here - either I leave in the width:
100% and have the site display correctly in IE, or I leave it out and have
the site display correctly in Mozilla/opera. Is there any solution to this
problem?
Thanks,
Peter
--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
Glenbranter - Scottish narrow gauge in 009
http://glenbranter.narrow-gauge.co.uk