MrBelfry
IS-IT--Management
- May 21, 2003
- 289
Hey there
I am using CSS positioning to layout a page. I want a section at the top that contains a banner (200px*50px) and then some text navigation and a text box (for doing searches). In an ideal world I would like the navigation to be aligned along the bottom of the section but currently can only align it along the top. Here is my CSS
.bannercontent {
width: 50%;
vertical-align: bottom;
float: left;
}
#banner {
width: 100%;
height: 50px;
}
.ontop {
float:left;
height: 50px;
width: 200px;
}
the old HTML looks something like this:
<div id="banner">
<img class="ontop" src="logo2.gif">
<span class="bannercontent">Search:</span>
</div>
I've tried a couple of the vertical-align settings but am not having much joy. I dont won't to set the top of the bannercontent section absolutely because if somebody changes the font size on their browser it looks stupid (text overlaps bad). Much to anyone who can help
MrBelfry
I am using CSS positioning to layout a page. I want a section at the top that contains a banner (200px*50px) and then some text navigation and a text box (for doing searches). In an ideal world I would like the navigation to be aligned along the bottom of the section but currently can only align it along the top. Here is my CSS
.bannercontent {
width: 50%;
vertical-align: bottom;
float: left;
}
#banner {
width: 100%;
height: 50px;
}
.ontop {
float:left;
height: 50px;
width: 200px;
}
the old HTML looks something like this:
<div id="banner">
<img class="ontop" src="logo2.gif">
<span class="bannercontent">Search:</span>
</div>
I've tried a couple of the vertical-align settings but am not having much joy. I dont won't to set the top of the bannercontent section absolutely because if somebody changes the font size on their browser it looks stupid (text overlaps bad). Much to anyone who can help
MrBelfry