Log In · Register

 
hover on div layout image
sprezzatura
post Apr 27 2006, 11:11 PM
Post #1


Peggy.
******

Group: Member
Posts: 2,508
Joined: Aug 2005
Member No: 214,025



http://glamour-beauty.com/

See the navi portion? When you mouseover it, that area would change to a white background and blue text.

I have Photoshop/Imageready CS2 and how do I make it like this? Also, I have heard that it requires javascript?
 
 
Start new topic
Replies
talcumpowder
post Apr 30 2006, 10:00 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Okay... Let me think for a second, you'll be using the hover psuedo-class. Let's say your navigation is this (in a larger table, probably):
CODE
<tr>
<td class="hover"><a href="http://">Link</a></td>
<td class="hover"><a href="http://">Link</a></td>
<td class="hover"><a href="http://">Link</a></td>
<td class="hover"><a href="http://">Link</a></td>
</tr>
Then your CSS might resemble this:
CODE
<style type="text/css">
.hover{width: 50px; text-align: center;}
.hover a:link{background-color: #000000; color: #FFFFFF;}
.hover a:hover{background-color: #FFFFFF; color: #000000;}
</style>
[ http://www.blewmyallowanceonmanga.net/ribbons/hover.html ]
 

Posts in this topic


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