Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-14-2004, 07:49 PM CSS question
Novice Talker

Posts: 9
Trades: 0
Hi, I'm in the process of doing this site.

http://www.dressedtokillclothing.com/

Is there anyway to make the whole link block have a roll-over effect. Like when you move the mouse over the box, not just the text inside the box.

Thanks!
tchase2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2004, 09:01 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Looks like it's already setup that way.

But to do that, you would use display: block;

Code:
#nav A {
  width: 150;
  padding: 2px;
  display: block;
  background-color: #ffffff;
  color: #000000;
}

#nav A:hover {
  width: 150;
  padding: 2px;
  display: block;
  background-color: #000000;
  color: #ffffff;
}
And in your body:

Code:
<DIV ID="nav">
<DIV><A HREF="page1.html">Link 1</A></DIV>
<DIV><A HREF="page2.html">Link 2</A></DIV>
</DIV>
EDIT: Forgot to add...In IE, you'll have to define a width, or it'll only hover on the text.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by techwench; 10-14-2004 at 09:04 PM..
techwench is offline
Reply With Quote
View Public Profile
 
Old 10-14-2004, 09:28 PM
Novice Talker

Posts: 9
Trades: 0
Thanks!

I didn't have it as 100% width, that was the problem. Thanks a ton!
tchase2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50113 seconds with 12 queries