User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 401,646 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,715 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 754 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 39
Reputation: kavithakesav is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
kavithakesav kavithakesav is offline Offline
Light Poster

Help rollover effect

  #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 5:06 am. Reason: Please use [code="CSS"] tags.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Posts: 44
Reputation: coolsaint is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
coolsaint's Avatar
coolsaint coolsaint is offline Offline
Light Poster

Re: rollover effect

  #2  
Feb 18th, 2008
Coolsaint | Hagio Web Hosting
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 427
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 17
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: rollover effect

  #3  
Feb 21st, 2008
Try
#menu.current_page {
  color:#FFFFFF;
}

or just

.current_page {
  color:#FFFFFF;
}
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC