Color for hovering links

This is a discussion on "Color for hovering links" within the Web Page Design section. This forum, and the thread "Color for hovering links are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 3rd, 2008, 00:40
New Member
Join Date: Feb 2008
Location: Sherwood Park Alberta Canada
Age: 20
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Color for hovering links

I have a little problem, i have many links for my menu, and I have a css file that changes the background color when hovered over, is there any way to make them have different colors for each link i indicate. Right now i can only change all of them.
via
Quote:
#menu a:hover {
background:transparent url(images/img28.gif) repeat-x scroll 0%; /*change background on mouse over*/
}
Quote:
<div id="menu">
<ul id="main">
<li class="current_page_item"><a href="#">Homepage</a></li><!--change current_page_item when navigating different pages-->
<li><a href="#">Archive</a></li>
<li><a href="#">Blog</a></li>
<li><a href="Photo's.htm">Photos/music</a>
<li><a href="javascript:ts('page',-1)">+ Smaller Font</a></li><!--Change Page to any div to effect text size-->
<li><a href="javascript:ts('page',1)">+ Larger Font</a></li>
<li><a href="#">Videos</a>

</ul>

</div>
Heres the site
Reply With Quote

  #2 (permalink)  
Old Feb 3rd, 2008, 05:07
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 28
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Color for hovering links

Quote:
Originally Posted by skitson View Post
I have a little problem, i have many links for my menu, and I have a css file that changes the background color when hovered over, is there any way to make them have different colors for each link i indicate. Right now i can only change all of them.
via
Heres the site
Make every <li> an ID, so
<li id="menu1"><a href="#">Archive</a></li>
<li id="menu2"><a href="#">Blog</a></li>
<li id="menu3"><a href="Photo's.htm">Photos/music</a>
<li id="menu4"><a href="javascript:ts('page',-1)">+ Smaller Font</a></li><!--Change Page to any div to effect text size-->

and in your CSS style your menu1, 2, 3 and 4..

I think
Reply With Quote
  #3 (permalink)  
Old Feb 3rd, 2008, 06:29
New Member
Join Date: Feb 2008
Location: Sherwood Park Alberta Canada
Age: 20
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Color for hovering links

Thanks, that worked perfect. This had been bugging me for a while.
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Links not the right color motormaniac Web Page Design 5 Dec 9th, 2007 09:25
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 1 Mar 5th, 2007 21:33
hovering navigation div jwalker80 Web Page Design 8 Feb 23rd, 2007 20:56
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48
change links color jenjen1018 Web Page Design 18 Jan 4th, 2004 20:52


All times are GMT. The time now is 06:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43