psupport
04-02-2008, 07:21 PM
I'm trying to add a search box to the chrome CSS drop down menu (http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm). I cannot get the search box to display in-line with the links.
Following the example in the Modern Brick Menu (http://www.dynamicdrive.com/style/csslibrary/item/modern-bricks-menu/P10)I pasted the following code to the chrome menu-
CSS:
#myform{ /*CSS for sample search box. Remove if desired */
float: right;
margin: 0;
padding: 0;
}
#myform .textinput{
width: 190px;
border: 1px solid gray;
}
#myform .submit{
font: 1px Verdana;
height: 22px;
}
HTML:
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="#" rel="dropmenu1">Resources</a></li>
<li><a href="#" rel="dropmenu2">News</a></li>
<li><a href="#" rel="dropmenu3">Search</a></li>
</ul>
<form id="myform">
<input type="text" class="textinput" /> <input class="submit" type="submit" value="Find" />
</form>
</div>
Following the example in the Modern Brick Menu (http://www.dynamicdrive.com/style/csslibrary/item/modern-bricks-menu/P10)I pasted the following code to the chrome menu-
CSS:
#myform{ /*CSS for sample search box. Remove if desired */
float: right;
margin: 0;
padding: 0;
}
#myform .textinput{
width: 190px;
border: 1px solid gray;
}
#myform .submit{
font: 1px Verdana;
height: 22px;
}
HTML:
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="#" rel="dropmenu1">Resources</a></li>
<li><a href="#" rel="dropmenu2">News</a></li>
<li><a href="#" rel="dropmenu3">Search</a></li>
</ul>
<form id="myform">
<input type="text" class="textinput" /> <input class="submit" type="submit" value="Find" />
</form>
</div>