?
Solved

html table links css style

Posted on 2014-11-18
1
Medium Priority
?
257 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 2000 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 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