In article <opsld12pq2wjyi3l@pretinho>,
Håvard Axelsson <me@privacy.net> wrote:
I have created the above part of a new web site, but there is a strange
gap between divs, and I don't know how to remove these.
Which <divs>?? All of them??
Please include browser/platform info - I could only replicate the gap in
IE 5.2.3 Mac - also tested in IE6 Win / Safari 1.2.4 / Firefox Mac 1.0 -
can't test on everything!
Could you have a look please and tell me what's wrong?
http://colombie.org/nouveau/design-css.html
Margins and paddings are set to 0;
No they aren't!
#contenu {
padding: 10px 0 0 0;
}
#main {
padding-left: 200px;
}
#separ {
padding: 10px;
}
the elements are displayed as block
because of their nature. I'm stuck...
Thanks,
I believe that the problem is in #contenu
I could remove the gap by removing the {clear: both;} in the <div>
#contenu
It seems to me that you can live without the {clear: both;} anyway as it
will naturally drop below the <div> above.
It also seems, strangely enough, that placing a comment in your HTML
directly after #submenu and before #main seems to remove the gap too
(why I cannot understand). IE is a strange beast - I think that goes
without saying though!. I also found several other fixes - but they
don't seem as logical as removing the {clear:both;}.
One more thing to note - it is standard to give dimensions for the <img>
element in HTML. I did not have your images displayed in testing this so
cannot be sure that my test is exactly the same layout as yours.
*L-
Ram // Always in reverse // @ME: moc.ommangised@mar