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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Rollover Always Forces New Line Problem

Status
Not open for further replies.

Mav3000

Technical User
Jun 20, 2005
113
GB
Hi, I'm using CSS to create an image rollover. However, everytime I use it the image rollover is shown on the line below where I need it!

I have a page where I have an input box and next to it I need the rollover image. However, when I add the rollover image, the image is displayed on the line below the input box - not next to it as needed.

------------------------

My CSS code is:

a.RolloverCalendar {
display: block;
width: 17px;
height: 16px;
background: url("images/rollovers/Calendar.png") 0 0 no-repeat;
text-decoration: none;
}

a:hover.RolloverCalendar {
background-position: -17px 0;
}

a:active.RolloverCalendar {
background-position: -34px 0;
}

-------------------------------------

My HTML Code is:

<td width="150" align="left"><input type="text" id="TB2" name="TB2" class="textboxdate"/><a class="RolloverCalendar" href="#" title="Click To Select Date"></a></td>

-------------------------------------

Any help as to what I'm missing to keep both of these objects on the same line would be greatly appreciated. My table row height is 16 pixels.

Thanks, Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top