Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a pulldown menu I want to superimpose on a background image. How do I do this? So far I have done:
<link type="text/css" rel="stylesheet" href="search.css" />
</head><body>
<div id="searchbar">
<select>
<option value ="value1">Value 1</option>
<option value ="value2">Value 2</option>
</select>
<input type="text" name="searchbar" size="30" /># searchbar
{
background-image:
url(images/searchbar.jpg);
}Also, I want to have another div on the same line for my submit button. How do I do this if a div puts a line break after its content? Thank you.

1. In HTML code, change "name" to "id"
<input type="text" name="searchbar" size="30" />2. No space between "#" and "searchbar" in the stylesheet.
3. Create a new DIV which will be positioned over the one containing your background.
#searchbar
{
background-image: url(images/searchbar.jpg);
}
#dropMenu
{
position: absolute;
margin-left: 100px;
margin-top: -50px;
}You'll have to play with those margins, of course, but that will allow you to place your divs anywhere that you want them.
Remote Support: Submit Ticket
Instant Message:
Yahoo: GreyStormMedia
AOL: GreyStormMedia
MSN: GreyStormMedia@GMail.com

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |