I am having trouble with the links not changing the height of the "holder" element. I can't seem to figure out what is going wrong.
HTML:
<div id="holder">
<a class="button" href="#"><span>home</span></a>
<a class="button" href="#"><span>example</span></a>
<a class="button" href="#"><span>another example</span></a>
<a class="button" href="#"><span>hello</span></a>
<a class="button" href="#"><span>abc</span></a>
</div>
CSS:
*{
margin:0;
padding:0;
}
#holder{
width:100%;
background:#000;
border:1px solid red;
}
.button {
color:#444;
display:block;
float:left;
height:24px;
margin-right:6px;
padding-right:18px;
}
.button span {
display:block;
line-height:14px;
padding:5px 0 5px 18px;
}
.button:hover {
background:#333 url('./images/bg_button_a.jpg') no-repeat scroll top right;
outline:none;
}
.button:hover span {
background:#333 url('./images/bg_button_span.jpg') no-repeat;
}