Solved

html table links css style

Posted on 2014-11-18
1
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

707 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