Solved

html table links css style

Posted on 2014-11-18
1
245 Views
Last Modified: 2014-11-18
I have this fiddle which contains a html table

http://jsfiddle.net/j8kz93va/

If you notice this fiddle contains some links on the page and a html table with a column called TeamWebsite containing some links and another column called CheerleaderWebsite

In my css I want to have 3 different link color styles.
One style is for any links on my page.
So in this case TestLink1, TestLink2, and TestLink3 would use the page links style.
Which I already set in the fiddle.

I want to have the links in the TeamWebsite column to have this style
a:link        navy
a:hover    purple
a:visited   pink
a:active    gray

I want to have the links in the CheerleaderWebsite colum to have this style
a:link        brown
a:hover    teal
a:visited   orange
a:active    gray

I tried setting the style for the links in my table link columns but it's not working.

Anyone know how I set the style for the link columns in my table per the colors listed above?
0
Comment
Question by:maqskywalker
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40450598
the column are the 5th and sixth column so you target the 5th and sixth cells of each row with:

td:nth-of-type(5) a:link {color:navy;}
td:nth-of-type(6) a:link {color:brown;}

etc...

Cd&
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now