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

picky styles

Status
Not open for further replies.

TruthInSatire

Programmer
Aug 12, 2002
2,964
US
I have the following classes and links. I'm using this in two pages. One page works like I would expect the other does not.

What I want it to do is apply the hover effect if the mouse hovers over any part of that row (display: block;)

on one page it does that. on the other page it only applies the effect if you hover over the text

Code:
a.menu:Link, a.menu:visited, a.menu:active {
			font-family: verdana;
			font-size: 10pt;
			color:#000;
			text-decoration: none;
			background-color:#D9CCB3;
			display: block;
			border: 1px solid #D9CCB3;
			}
a.menu:hover {
			font-family: verdana;
			font-size: 10pt;
			color: #0059a5;
			border: 1px solid #ccc;
			border-right: 1px solid #D9CCB3;
			border-left: 1px solid #D9CCB3;
			border-top: 1px solid #9CA5C9;
			border-bottom: 1px solid #9CA5C9;
			text-decoration: none;
			background-color:#DFD9D0;
			display: block;
			}

Links that do not act as I wish

Code:
	     <td  bgcolor="#BCD5DE">
		<a href="asdf.html" class="menu">Link</a>
		<a href="asdf" class="menu">Link</a>	
		<a href="adsf" class="menu">Link1234568789</a>	
		<a href="adsf" class="menu">Link</a>
		</td>

Links that do

Code:
  <td valign="top" nowrap>

<br>
	<span class="menuHead">Navigation&nbsp;</span>
	<a href="../../default.cfm?count=no" target="_blank" class="menu">&nbsp;Home page&nbsp;</a>
	<a href="default.cfm" class="menu">&nbsp;Admin&nbsp;</a>
	<a href="superStats.cfm" target="_blank" class="menu">&nbsp;Listener stats&nbsp;</a><br>
	
				
          </td>

what am i missing? why does one work and the other does not?

both tested in IE 6.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
I got it to work. It wanted to be inside a single sell table.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top