Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

style anchors based on href attribute?

Status
Not open for further replies.

j4606

MIS
Nov 28, 2005
349
0
0
US
Can you style an anchor based on it's href contents. For example if I have link that points to a .pdf file,
Code:
<a href="somepdf.pdf">link</a>
would it be possible to style the anchor based on it's href attributes. I know I can use javascript to parse the href value or use css to apply a class to these tags, but i was told today that you can style based on href attribute extension? I can't seem to find anything in the css2 sepcification and google isn't returning anything on the subject, maybe im looking up wrong info. Thanks in advance
 
Great link.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top