Log In · Register

 
 
Closed TopicStart new topic
rollovers
tommyhottie
post Apr 20 2008, 04:09 PM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 488,356



how do I get a link to change its background color like this:



what is the css or html code to do this?
 
Marlons
post Apr 20 2008, 04:11 PM
Post #2


Thread Killer
******

Group: Staff Alumni
Posts: 1,012
Joined: Jun 2007
Member No: 530,544



Do you mean like this?
http://www.createblog.com/layouts/preview.php?id=26417
And are we talking about myspace or websites?
 
tommyhottie
post Apr 20 2008, 04:34 PM
Post #3


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 488,356



yeah!
its for a website
 
miyashu
post Apr 21 2008, 09:59 AM
Post #4


cake or DEATH
*****

Group: Staff Alumni
Posts: 631
Joined: Sep 2005
Member No: 223,586



i always found it easier to work with tables for this. you can customize the link attributes & the widths of the table data cells to your liking:

CODE
<table border="0">
<tr>
<td width="20"></td>
<td width="150" valign="top">
<span class="navi">text</span>
<span class="link"><a href="#">title here</a></span>
<span class="link"><a href="#">title here</a></span>
<span class="link"><a href="#">title here</a></span>
</td>


and here's what you would put in your css:

CODE
.link {
font-family: verdana, sans-serif;
font-size: 12px;
color: #000000;
line-height: 14px;
text-transform: uppercase;
background-color: #ffffff;
display: block;}

.link a:hover {
color: #ffffff;
text-decoration: none;
display: block;
background-color: #000000;}
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: