hey everybody
in my site the links are set to a certain color thats fine.
but i have some links in a div tab that i want to be a different color then my body links.
ive seen sites have two different color links before.
any help would be greatly appreciated.

Give each set of links a class and then use CSS.


For basic links/Body links as you called them

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris  nisi ut aliquip ex ea commodo consequat. <a href="http://URL/">link in text</a>  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The CSS

a {
    color: color;
}

For links in your div tab

<a class="divTab" href="http://URL/">Link 1</a>
<a class="divTab" href="http://URL/">Link 2</a>
<a class="divTab" href="httpL//URL/">Link 3</a>

The CSS

a.divTab {
    color: color;
}

If you don't understand just let me know.

Regards
Arkinder

You may try this, same like the way above for the link in body you can use css like this

a{color : #FF0000; text-decoration : underline}

the html example

this is a <a href="http://www.leakbali.com">link</a>. this is a link. this is a link. this is a link. this is a link. this is a link. this is a link.

For another link in different element, such div element,

the CSS

div a{color : #00FFFF; text-decoration : underline}

the html example

<html>
<body>
<div>this is a  <a href="http://www.leakbali.com">link</a> this is a link</div>
</body>
</html>
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.