In the header section of my page I have a logo in the top left and a search facility in the top right. The page is fluid and works fine when the window is made wide. However, when the page is made narrow, the search facility wraps beneath the logo.
How can I prevent this and keep them side by side?
I have posted the relevant bits of code below
Many thanks
Tony
________________________________________________________________________________
How can I prevent this and keep them side by side?
I have posted the relevant bits of code below
Code:
#upper_header {margin: 0px; height: 36px; background-image: url('../images/blue_back.gif'); background-color: #330099;}
img.spiraxlogo {float: left; margin: 5px 20px 5px 5px;}
form.topsearchfrm {float: right; white-space: nowrap; margin: 5px 2px 5px auto;}
input.topsearch {width: 200px;}
input.topsearchbtn {width: 100px; margin: 2px 20px 0px 0px;}
Code:
<div id="upper_header">
<a href="[URL unfurl="true"]http://www.SpiraxSarco.com"><img[/URL] src="<%=strSitePath%>images/spiraxlogo.gif" width="100" height="26" border="0" class="spiraxlogo" alt="[URL unfurl="true"]www.SpiraxSarco.com"[/URL] /></a>
<form action="default.asp" method="post" class="topsearchfrm">
<input type="text" size="30" class="topsearch" />
<input type="submit" value="Search" class="topsearchbtn" />
<a href="#" class="advsearch">Advanced Search</a>
</form>
</div>
Tony
________________________________________________________________________________