Solved

html table links css style

Posted on 2014-11-18
1
250 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Flex space-between 2 22
links not working 2 27
HTML INPUT 6 23
Telerik RadEditor Control Save 8 20
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 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