It isn't clear to me whether you are talking about horizontal or vertical space.
The image tag by default is an inline element. As such, it is a lot like typing out text. Any one white-space character between characters (tags in this case) is interpreted as a space, all others are ignored.
Additionally, in a standards compliant browser under strict mode, all images with their default display of inline reserve a small bit of layout space at the bottom. This is because all inline elements are expected to fit the 'contains text' model of a span tag, where space is reserved for the tails on letters like g, q, j, etc.
You don't have to type all of your code on one line, but for images that touch horizontally, you can break the line within the tag:
Code:
<div id="header">
<img src="images/header_top.jpg" alt=" "
/><img src="images/header_bottom.jpg" alt=" " />
</div>
or use style (for side by side images one possible method is):
Code:
#header img {
display:block;
float:left;
}
#header div {
clear:left;
}
Code:
<div id="header">
<img src="images/header_top.jpg" alt=" " />
<img src="images/header_bottom.jpg" alt=" " />
<div></div>
</div>
for images that are one above the other touching vertically (as is implied by their names):
Code:
#header img {
display:block;
}
Code:
<div id="header">
<img src="images/header_top.jpg" alt=" " />
<img src="images/header_bottom.jpg" alt=" " />
</div>
Bookmarks