I'm puzzled by the appearance of a mysterious blank space between two div
elements. Here's the HTML code in question:
<div id="header">
<img id="background" src="http://farm3.staticflickr.com/2847/11154210265_a8854fe5c5_h.jpg" alt="background" />
</div>
<div id="menu">
What could be causing the unexpected gap?
</div>
Here's the relevant CSS:
* {
margin: 0px;
padding: 0px;
}
#background {
max-width:100%;
max-height: 550px;
}
#menu {
background: rgb(170,200,189);
}
To see this issue in action, check out the JSFIDDLE link here: JSFIDDLE