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

Simple Rollover - Or Is It?

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I have been tidying up some code and have hit a problem.
Entry from my CSS.
Code:
#elButton a  {
	color: #ffffff;
	font-size:12px;
	font-family:verdana;
	font-weight:bold;
	text-decoration: none;
	border:0px outset white;
	background-color: none;
	td {text-align:center;}
	display: block;
	padding: 3px 5px;
	margin: 1px;
}
#elButton a:hover {
	color:#003366;
	padding-left:4px;
	font-weight:bold;
	border:0px inset black;
	text-decoration: none;

}

In the main prog (PERL Script) the div id was declared twice but only closed once yet it worked ok. Items display white with a dark grey rollover.
Removing one of the div id's still allows it to work but is displaying blue with a dark grey rollover.
Code:
<div id="elbutton">
<table border="0" width="100%">
  <tr><br>
    <td align="center" width="17% nowrap"><a href="$LINK1">$TEXT1</a></td>
    <td align="center" width="17% nowrap"><a href="$LINK2">$TEXT2</a></td>
    <td align="center" width="16% nowrap"><a href="$LINK3">$TEXT3</a></td>
    <td align="center" width="16% nowrap"><a href="$LINK4">$TEXT4</a></td>
    <td align="center" width="17% nowrap"><a href="$LINK5">$TEXT5</a></td>
    <td align="center" width="17% nowrap"><a href="$LINK6">$TEXT6</a></td>
  </tr>
</table>
<hr>
</div>
What have I missed?


Keith
 
Thanks Dan but not the solution.
If I issue the id="elbutton" in the section before this, it works ok but on it's own it reverts to my default, any suggestions

Keith
 
What DOCTYPE do you have, and what browser are you seeing the problem in?

Using just the code you've given above, I see the correct colours all the time in both IE 6 and Fx 1.5.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top