Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
New to css adding link class.
Old 03-13-2008, 12:09 PM New to css adding link class.
Junior Talker

Posts: 4
Trades: 0
Hi everyone I have a table like this
Quote:
tr.odd td {
background: #F6F4EB;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #333333;
text-decoration: none;
}
for this table only i want to define the link colors alink ahover etc, how can i do it.

Thanks in advance.
werushk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2008, 03:18 PM Re: New to css adding link class.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Have you even tried to find the answer yourself ? This is elementary css.

a:link{rules here}
a:visited{rules here}
a:hover{rules here}
a:active{rules here}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 04:23 PM Re: New to css adding link class.
Junior Talker

Posts: 4
Trades: 0
Thanks for your reply,

Yes I did try and i know how to make link styles. But in here my question is to apply link property to only given table. I know that I can't do a:link,hover
like below
tr.odd td {
a:link{rules here}
background: #F6F4EB;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #333333;
text-decoration: none;
}

I have tried like
tr.odd td a:link {rules here} etc but it did not work.
werushk is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 04:28 PM Re: New to css adding link class.
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Try something like:
Code:
a.odd:link {rules here}
a.odd:visted {rules here}
a.odd:hover {rules here}
a.odd:active {rules here}
Then all links of class odd would follow those rules but no other links would.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 03-13-2008, 04:57 PM Re: New to css adding link class.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
What you're talking about is SPECIFICITY, look it up
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 05:43 PM Re: New to css adding link class.
Junior Talker

Posts: 4
Trades: 0
Arenlor thanks for your reply, I have tried is as the following and I think I am still unlucky
Quote:
a.odd:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #CC3300;
text-decoration: none;
}
werushk is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 05:46 PM Re: New to css adding link class.
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by LadynRed View Post
What you're talking about is SPECIFICITY, look it up
Thanks for the info I am reading it.
werushk is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 06:48 PM Re: New to css adding link class.
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
What is your HTML?
Using what I said you'd have something like:
HTML Code:
<table><tr><td>Name</td><td>Link Even</td><td>Link Odd</td></tr>
<tr><td>Webmaster-Talk</td><td><a href="http://www.webmaster-talk.com/">Webmaster-Talk</td><td><a class="odd" href="http://www.webmaster-talk.com/">http://webmaster-talk.com/</a></td></tr></table>
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Reply     « Reply to New to css adding link class.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26586 seconds with 12 queries