Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 02-18-2008, 10:37 AM
Contributing Member
Latest Blog:
None

 
Join Date: 08-27-07
Posts: 61
iTrader: 0 / 0%
table cell and hover

Is it possible to have a table cell (with a link included to hover) and have the hover color fill the whole cell and not just the link? If this is possible can anyone tell me how to do it. All I can get is the link text to hover and not the whole cell.
 
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 11:38 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 649
iTrader: 0 / 0%
Yes it is possible,

CSS
Code:
.test td{background-color:#FFFFFF;} .test td:hover{background-color:#ff99cc;}
HTML
Code:
<table class="test"> <tr> <td><a href="hello.aspx">hello"</a></td> </tr> </table>
boog's
__________________
Price is what you pay... Value is what you get.
 
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 11:42 AM
Contributing Member
Latest Blog:
None

 
Join Date: 08-27-07
Posts: 61
iTrader: 0 / 0%
re

wow, thanks for that such a small piece of code. Hope it works.
 
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 06:05 PM
Banned
Latest Blog:
None

 
Join Date: 08-01-07
Posts: 1,915
iTrader: 0 / 0%
i think one also work...

HTML Code:
<tr> <td onmouseover="this.bgColor='white'" onmouseout="this.bgColor='black'"><a style="TEXT-DECORATION: NONE" href="URL"><b>LINK NAME</a></td> </tr>
 
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 01:08 AM
kos's Avatar
kos kos is offline
Coding Tiger
Latest Blog:
Happy New Year 2013

 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
@Bogs:
My advice? Do not use that technique. Plus, it's obtrusive too, (just think about those without javascript enabled in their browsers)...for this, css is enough.


 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table cell borders and video loops lajones3 Coding Forum 5 08-24-2007 01:57 PM
How to add link within the cell in a table minbak Coding Forum 2 03-19-2006 10:22 AM
Netscape 7 And Table Cell Script Oddity ToTheWeb Coding Forum 1 07-16-2005 04:02 PM
Bottom-Align Table Cell Content cat_mother_ Coding Forum 4 11-17-2003 04:14 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:23 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.