|
Posted by dorayme on 04/06/06 00:19
In article <49ij4oFp059oU1@individual.net>,
"Paul Watt" <paulioNOSPAM@wattio.freeserve.co.uk> wrote:
> > What happened when you used float?
>
> I had two cells leftcell and maincontent; I had leftcell (float:left;
> width:250px;) and maincontent(no float,margin-left:255px;). IE and FF
> couldnt decide where to start counting the 255px from because leftcell was
> floated.
They do decide, it is just that they decide differently to each
other. And IE deviates from the css standards. If you left float
a nav block, IE displaces the whole of the next block, not just
its content (eg, words).
It is a headache, true, but you need to get to grips with it, it
is really a fundamental if you are going to design with css.
If you want to avoid a margin on your content block in which your
float sits, then you can use a left float on the content block as
well.
You need now to watch for IE doubling float margins too, these
are all horrible bugs. There are no end of tutes on these things.
http://www.positioniseverything.net/explorer/doubled-margin.html
for this last.
You could read
http://www.digital-web.com/articles/toward_a_more_standards_compli
ant_ie/
and
http://www.positioniseverything.net/floatmodel.html
--
dorayme
Navigation:
[Reply to this message]
|