CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 19th, 2002, 09:33 PM
lnuxhakr lnuxhakr is offline
I need more of everything
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: variable
Posts: 182 lnuxhakr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
css hover and table cells

I have seen many websites in the past that use css to change the entire table cell color as well as the text color on the link when it is hovered over. I really wnat to know how to do this with css. Does anyone know?

Thanks in advance
__________________
Windows?

Reply With Quote
  #2  
Old November 19th, 2002, 09:52 PM
wdn2000's Avatar
wdn2000 wdn2000 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2000
Posts: 1,058 wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 Days 20 h 56 m 43 sec
Reputation Power: 16
That's the beauty of the web, it's all there for you to learn from (at least client-side stuff). Anytime you see a neat javascript or css trick all you have to do is hunt down the file(s) that contain the goodies.

But, just to make your life simple, try this:

Make a file called style.css. In it put the following:
Code:
a          {font-family: arial, helvetica, sans-serif;
              font-size: 8pt;
              text-decoration: none;
              color: #000
}

a:hover{font-family: arial, helvetica, sans-serif;
              font-size: 8pt;
              text-decoration: none;
              color: #f00;
              background: #000;
}

td         {background-color: #00f;
}


Then add

Code:
<link rel="stylesheet" type="text/css" href="style.css">


to the head section of your HTML page (make sure that style.css is in the same directory, or change the path to wherever you put it).

Feel free to play around with the style definitions and see what happens. I have a small collection of .css files I've found and saved over the last year because they had good/interesting tricks in them, I suggest you do the same.


wdn2k

Reply With Quote
  #3  
Old November 19th, 2002, 09:57 PM
lnuxhakr lnuxhakr is offline
I need more of everything
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: variable
Posts: 182 lnuxhakr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
thanks very much

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css hover and table cells


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway