PDA

View Full Version : style for link without having a class in the HREF



emanuelle
02-19-2006, 06:24 PM
I have some links and I cant put a class in them.
So how can I give them a style anyway? Is there a way to put the class in the TD that surrounds them and put some A attribute in the css of the same class?

jscheuer1
02-19-2006, 06:51 PM
Yes, if the link is inside the td and the td has a class of say - ltd, you can select its links like so:


.ltd a {
color:green;
font-family:sans serif;
}

Just remember that if you have styling for any other links on the page, you may need to specify pseudo classes and/or properties for '.ltd a' that will prevent them from using these link stylings that might otherwise also apply to them.

emanuelle
02-19-2006, 07:23 PM
:) :) :) :)