I have 2 different links, I want one to be blue (as an example) and the other to be red... but for some odd reason I can't see what's causing all of the links to be the same colors.... can someone help?
Thanks in advance!
<M/> 170 Why so serious? Featured Poster
Recommended Answers
Jump to PostCould you post your CSS file?
The easiest way to do it is with a class, something like this would work:.LinkA a:link{ font: 15px Arial; color: #FF0000; // Red text-decoration: underline; } .LinkB a:link{ font: 15px Arial; color: #000DFF; // Blue text-decoration: underline; }
Obviously …
Jump to PostYou can use class or id attribute of anchor tag!
Ex:<a href="a.htm" id="red"> <a href="a.htm" id="blue">
And then use CSS.
like:a.red{color:red} a.blue{color:blue}
All 5 Replies
Octet 45 Newbie Poster Featured Poster
<M/> 170 Why so serious? Featured Poster
Octet 45 Newbie Poster Featured Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
avinanuami 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.