Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Positioning and vertical align

Status
Not open for further replies.

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=&quot;banner&quot;>
<img class=&quot;ontop&quot; src=&quot;logo2.gif&quot;>
<span class=&quot;bannercontent&quot;>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 [love2] to anyone who can help


MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top