rollover effect

Reply

Join Date: Nov 2007
Posts: 52
Reputation: kavithakesav is an unknown quantity at this point 
Solved Threads: 2
kavithakesav kavithakesav is offline Offline
Junior Poster in Training

rollover effect

 
0
  #1
Feb 18th, 2008
Hi,

I designed one website for links i gvn rollover color, that color i want to be in current page means if u click on like ex: about.html page that rollover color has to shown in that page also.

I tried with this code, but not working.
  1. #menu{
  2. width:90%;
  3. height:30px;
  4. float:left;
  5. margin: 0 auto;
  6. padding: 0px 0;
  7. background-image:url(images/menu-bg.jpg);
  8. }
  9. #menu ul{
  10. height:16px;
  11. margin:0px;
  12. padding:0px;
  13. list-style:none;
  14. }
  15. #menu li{
  16. float:left;
  17. height:16px;
  18. }
  19. #menu a{
  20. float:left;
  21. height:16px;
  22. width:132px;
  23. padding:13px 0px 0px 0px;
  24. font-family:Verdana, Arial, Helvetica, sans-serif;
  25. font-size:11px;
  26. color:#CCCCCC;
  27. font-weight:normal;
  28. text-decoration:none;
  29. background: black url(images/butn1.jpg) center center repeat-x;
  30. }
  31. #menu a:hover{
  32. color:#FFFFFF;
  33. }
  34. #menu .current_page{
  35. color:#FFFFFF;
  36. }
Last edited by MattEvans; Feb 19th, 2008 at 6:06 am. Reason: Please use [code="CSS"] tags.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 44
Reputation: coolsaint is an unknown quantity at this point 
Solved Threads: 2
coolsaint's Avatar
coolsaint coolsaint is offline Offline
Light Poster

Re: rollover effect

 
0
  #2
Feb 18th, 2008
Coolsaint | Hagio Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: rollover effect

 
0
  #3
Feb 21st, 2008
Try
HTML and CSS Syntax (Toggle Plain Text)
  1. #menu.current_page {
  2. color:#FFFFFF;
  3. }

or just

HTML and CSS Syntax (Toggle Plain Text)
  1. .current_page {
  2. color:#FFFFFF;
  3. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC