Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-27-2012, 10:57 PM   PM User | #1
phpchick
New Coder

 
Join Date: May 2011
Location: new york
Posts: 90
Thanks: 4
Thanked 0 Times in 0 Posts
phpchick is an unknown quantity at this point
Getting a TR cell background to light up on hover

Pretty simple thing I'm trying to do but I can't seem to do it. I'm sure someone here could do this in their sleep, can anyone help out? The link to the actual page is below.

I'm trying to get the cell that says "JOIN" to lightup when someone hovers over it. By "lightup" i mean do something like

.something a:hover {background-color:red; font-weight:bold; text-decoration:underline; color:blue;}

to give it a little spark, but I can't seem to figure out what should go in the "something" part, nothing I do seems to affect it...

help?


PHP Code:
    <div class="tbldivside">
    <
TABLE class=tblAcqSubscriptionside>
<
TBODY>
<
TR class=even>
<
TD class=pricingcell><!-- col_1 --><a href="http://www.website.com/signup/"><DIV class="featureNamejoin">JOIN</DIV></a></TD>
</
TR>
</
TBODY></TABLE>
</
div
http://goo.gl/wXrBX
phpchick is offline   Reply With Quote
Old 12-27-2012, 11:12 PM   PM User | #2
Matt Boldt
New Coder

 
Join Date: Jul 2009
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Matt Boldt is an unknown quantity at this point
Well, you really shouldn't be using tables to layout links like that. But it looks like you might be dealing with code given to you that can't be directly edited...

This should do it.

Code:
.pricingcell:hover {
    background: red;
}
The .pricingcell class is what gives the div its color, so that's what you're changing. Ideally, though, there would be an <li> with a <a href="#"> inside it that you'd control with

Code:
 .the-class-name a:hover{
   /* stuff */
}
Matt Boldt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:23 PM.


Advertisement
Log in to turn off these ads.