Forum Moderators: not2easy
I want to create a vertical navigation bar that is align at the bottom of the container box.
I tried it with vertical-align:bottom in the css, even tried to add valign="bottom" in the xhtml doc (what I really prefer to avoid), yet nothing works. Is it because of working with floats?
here is the code snippet
<div id="mcfooter_wedding">
<div id="weddnav">
<div class="weddnav1"><img src="images/wedding/weddvenuesm.jpg" /><br>venues</div>
<div class="weddnav1"><img src="images/wedding/weddworkshopsm.jpg" /><br>workshop</div>
<div class="weddnav1"><img src="images/wedding/weddmenusm.jpg" /><br>menus</div>
<div class="weddnav1"><img src="images/wedding/weddphotogsm.jpg" /><br>gallery</div>
<div class="weddnav1"><img src="images/wedding/weddindexsm.jpg" /><br>wedding home</div>
<div class="weddnav1"><img src="images/wedding/weddprepsm.jpg" /><br>planning</div>
</div>
</div>
here the css part:
#mcfooter_wedding{
width:700px;
clear:both; [...refers to other part of the layout...]
height:90px;
background-color:ffcccc;
margin:30px 0px 30px 0px;
}
#mcfooter_wedding #weddnav{float:left;
margin:0;padding:0;
height:100%;}
#mcfooter_wedding #weddnav .weddnav1{
float:left;
margin-left:40px;
vertical-align:bottom;
border:1px solid #000000;}
I appreciate your help!
Katrin
every link image has a different height, therefore, instead of having them all aligned on top (as it is by default), I thought there would be a possibility to simply *align* them all at the bottom.
Well, yes, if this is not possible, I could make the link images all the same height and define a top margin.
thank you for your reply,
Katrin
Not only is it not really possible (properly) to control vertical alignment with the CURRENT specification of CSS, but even if it were, it would conflict with your float.
Vertical alignment without using tables can be accomplished either with hacks/workarounds (display:table-cell for browsers which support; hacks for IE) or javascript.