I don't know anything about Max Design but, adding these two property/value pairs to the menu definitions seems to do the trick:
Code:
#menu {
margin: 0px 0px 2px 0px;
float:left;
clear:left;
padding: 10px;
height: auto;
width: 430px;
background-color: aqua;
border: 1px solid black;
}
However, as it is being used by multiple elements, it should technically be a class, not an id. Not changing this will cause the page to fail w3c validation and also cause problems with properly written javascript (if any) designed to work with that id. Other problems could also arise. To make it a class:
Code:
.menu {
margin: 0px 0px 2px 0px;
float:left;
clear:left;
padding: 10px;
height: auto;
width: 430px;
background-color: aqua;
border: 1px solid black;
}
and the elements that use it would be class="menu" not id="menu":
HTML Code:
<div class="menu">menu1</div>
<div class="menu">menu2<p>and some more content<br>to test the auto height</div>
<div class="menu">menu3</div>
<div class="menu">menu4</div>
Note: Due to a 1 in 100 IE only bug, style definition opening braces ({) should have one space before them:
.menu {
not:
.menu{
Bookmarks