Thread: CSS question
View Single Post
Old 2014-01-17, 04:10 AM   #2
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
There are few ways to accomplish this, but all is related and works the same way.
If your recips are just simple links then you can add a.class to a link like this

Code:
<a href="http://www.domain.tld" title="title" class="class">Title anchor</a>
and in the css file you just specify this class

Code:
a.class{
font-size:normal;
font-seight:400;
color:black
etc etc
}
a.class:hover{
font-size:normal;
font-seight:700;
color:red
etc etc
}
or you can specify certain div elements to behave differently like ex:

Code:
<div id="container"><a href="http://www.domain.tld" title="title">Title anchor</a></div>
Code:
#conatiner a{
font-size:normal;
font-seight:400;
color:black
etc etc
}
#conatiner a:hover{
font-size:normal;
font-seight:700;
color:red
etc etc
}
Make note that I used id to the div but most common practice and safe would be using classes. ID's could be additional elements inside of a class elements to specify dynamic actions ex using Jquery.

Usually if I don't know something regarding coding then Google is my friend , like this

Hope that helps.

Last edited by pc; 2014-01-17 at 04:12 AM..
pc is offline   Reply With Quote