Log In · Register

 
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?
 
 
Start new topic
Replies
miyashu
post Apr 21 2008, 09:59 AM
Post #2


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;}
 

Posts in this topic
tommyhottie   rollovers   Apr 20 2008, 04:09 PM
Marlons   Do you mean like this? http://www.createblog.com/l...   Apr 20 2008, 04:11 PM
tommyhottie   yeah! its for a website   Apr 20 2008, 04:34 PM
miyashu   i always found it easier to work with tables for t...   Apr 21 2008, 09:59 AM


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