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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redefining 2 links differently??? 2

Status
Not open for further replies.

atmospherik

Technical User
Feb 27, 2003
46
GB
I understand how to redefine the <a> tag to change how all the links look but is there a way of making some links (eg the copyright at bottom of page) a different size to others?
 
hi atmos'
you can just apply classes to the links you want in different styles.

i.e...
<style>
a {color:'blue';
font-size:'12px';
text-decoration:'none';
blah.. blah..}

a.copy {color:'red';
font-size:'9px';
blah... blah...}
</style>


<div><a href=&quot;link1.html&quot;>Normal Link</a></div>
<div><a href=&quot;copyright.html&quot; class=&quot;copy&quot;>Copyright Info</a></div>

Hope that makes sense
Pete
 
also

a:hover

a.copy:hover

would then set the hover

if i work with pseudo classes i name them all (i dont know why i do this) but i would never have an &quot;a&quot; it would be &quot;a.something&quot; [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top