Menu
When I create DIV’s on top of each other, often I find that there will be small gaps between them, of three or four pixels. I don’t seem to be able to predict when these will appear though. I have a few div’s on top of each other, some have gaps, some don’t. Why? What is going on?
</div><div class="tabs">
<map name="FPMap1"><area href="index.htm" shape="rect"
coords="21, 4, 117, 21"><area href="gothic_ashtrays.htm" shape="rect"
coords="118, 4, 212, 21"><area href="gothic_backpacks.htm" shape="rect" coords="308, 4, 402, 21"><area href="help.htm" shape="rect" coords="403, 4, 500, 21"></map>
<i> </i> <img src="images/img_clothing.gif" usemap="#FPMap1" width="521" height="36">
<i> </i> </div></div><div class="page_container">
<div class="left_column">
</div><div class="tabs">
<map name="FPMap1"><area href="index.htm" shape="rect" coords="21, 4, 117, 21"><area href="gothic_ashtrays.htm" shape="rect"
coords="118, 4, 212, 21"><area href="gothic_backpacks.htm" shape="rect" coords="308, 4, 402, 21"><area href="help.htm"
shape="rect" coords="403, 4, 500, 21"></map><img src="images/img_clothing.gif" usemap="#FPMap1" width="521" height="36"></div></div><div class="page_container">
<div class="left_column">
[i]Originally posted by Fang [/i]
[B]Adding [I]disply:block;[/I]to the image removes the gap. Tried and tested. [/B][/QUOTE]
<i>
</i><img class="nogap" alt= ....>
<i>
</i>img {
whatever: nogap;
}
<i>
</i>#header img {
whatever: nogap;
}
[i]Originally posted by Fang [/i]
[B]Welcome back, been on vacation?
All 3 work:
1) applied [I]class[/I] to seleted images
2) applied to all document images
3) applied to all images in the element with [i]id header[/i] [/B][/QUOTE]
#header img {
display:block;
border:0;
}
<i>
</i>
body {
background: #ccc url("images/leavesblanket-ccc.gif") repeat-y 50% 0;
font-family: Trebuchet,Verdana,Arial,Helvetica,sans-serif;
font-size: 90%;
margin: 0 0 0 20px;
padding: 0;
color : #000;
background-color: #ccc;
z-index: 0;
}
body.bc1 {background:#ccc url("images/logos/blanket-09c.gif") repeat-y 50% 0;}
body.bc2 {background: #9cf url("images/logos/blanket-09c.gif") repeat-y 50% 0;}
body.bc3 {background: #9cf url("images/logos/blanket-c9f.gif") repeat-y 50% 0;}
body.bc4 {background: #9cf url("images/logos/blanket-c0c0c0.gif") repeat-y 50% 0;}
<i>
</i><body class="bc1">
0.1.9 — BETA 5.9