This is a discussion on "CSS menu" within the Web Page Design section. This forum, and the thread "CSS menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS menu
Hi All,
I have created a css menu and I want to have each link to have a different coloured background when you hover over it. I have managed to get my first link to have a purple background but not sure how to define each link to have a different colour. Below is the code for the html & css - css - /* =-=-=-=-=-=-=-[main frame table]-=-=-=-=- */ #f_t { width: 800; border: 1 solid #333333; } #f_hc{ width: 790; border: 1 solid #ffffff; } #body_c { width: 790; height: 270; background: url(images/background.jpg) no-repeat; } #menu_c{ width: 200; height: 125; vertical-align: top; } #content_c{ width: 460; text-align: left; vertical-align: top; } /* =-=-=-=-=-=-=-[Menu Five]-=-=-=-=-=-=-=- */ #menu5 { width: 225px; border-style: none solid none solid; border-color: #D0D0D0; border-width: 1px; margin: 0px; } #menu5 a { height: 30px; text-decoration: none; padding: 8px 15px 0 10px text-align: left; } #menu5 a:link, #menu5 a:visited { color: #070707; display: block; background: url(images/linkoverstatic.jpg) no-repeat; } #menu5 a:hover { color: #ffffff; background: url(images/linkoverpurple.jpg) no-repeat 0 0px; } #menu5 a:active { color: #fff; background: url(images/linkoverover.jpg) no-repeat 0 -64px; } #menu5 #t{ font-family: Arial; color: 333333; font-size: 12; padding: 10; } #menu5 p{ padding: 10 0 0 10; margin: 0; } html - <html> <head> <title>sfgroup | Home </title> <link href="main.css" rel="stylesheet" type="text/css"> </head> <body background="images/gradient.jpg"> <table id='f_t' border="1" align="center"> <tr> <td id='f_hc'> <a href='index.htm'> <img src="images/banner.jpg" border='0' title='Home' alt='missing image'> </a> </td> </tr> <tr> <td id='body_c' align='center'> <table width="100%" height="270" border="0" style='border: 0 solid'> <tr> <td id='menu_c'> <div id="menu5"> <p><a id='t' href="index.htm" title="Home">Home</a></p> <p><a id='t' href="about.htm" title="About">About</a></p> <p><a id='t' href="application.htm" title="Application Form">Application Form</a></p> <p><a id='t' href="contact.htm" title="Contact Us">Contact</a></p> <p><a id='t' href="faq.htm" title="FAQ">FAQ</a></p> <p><a id='t' href="financialinfo.htm" title="Financial Information">Financial Information</a></p> <p><a id='t' href="previousdonations.htm" title="Previous Donations">Previous Donations</a></p> </div> </td> <td id='content_c'> <p><font size="2" face="Arial, Helvetica, sans-serif"><br> <img src="images/space.jpg" width="102" height="99" align="left"><br> Thank you for visiting SFGroup, a charitable fund for disabled people.</font> <font size="2" face="Arial, Helvetica, sans-serif">If you were to place any updates, news, etc. for your guests, this information will be placed here. </font><br> <strong><font size="2" face="Arial, Helvetica, sans-serif"><br> <br> </font></strong></p> <hr size="1" noshade> <strong><font size="2" face="Arial, Helvetica, sans-serif"><font color="#333333">News</font></font></strong><br> <br> <strong><font color="#666666">- <font size="2" face="Arial, Helvetica, sans-serif">(13.06.2006)</font></font></strong><font size="2" face="Arial, Helvetica, sans-serif"><br> <font color="#666666">£865 for Sleep System Christopher has profound physical and intellectual disabilities together with epilepsy. He suffers to such an extent that he is unable to relax his limbs at all. He is permanently tight and... <a href="test.htm">read more</a></font><br> <br> <font color="#666666"><strong>- (13.01.2006)</strong></font><br> <font color="#666666">£1,468 for Standing Frame Chadsgrove School is a special school for children with physical and learning difficulties. The frame is used every day by several children aged 4 to 10. WHAT DIFFERENCE HAS THIS MADE? - Se... <a href="test.htm">read more </a></font> <hr size="1" noshade> </td> </tr> </table> </td> </tr> <tr> <td><img src="images/footer.jpg" width="790" height="70"></td> </tr> </table> </body> </html> Please can anyone help, Thanks |
|
|
|
||||
|
Re: CSS menu
Have a look at the code on my site... it has different colored links at the top of the page,
http://www.designcreek.com http://www.designcreek.com/style.css Hope that helps to solve your problem. Craig |
![]() |
| Tags |
| css, menu |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Menu Help! | RZX Developer | Web Page Design | 5 | Aug 14th, 2007 11:59 |
| css menu | csun | PHP Forum | 4 | Aug 1st, 2007 20:37 |
| I have a normal css menu, but want ot add drop down menu to it | multichild | Web Page Design | 7 | Jan 9th, 2007 16:07 |
| Add Sub Menu | DannyP43 | JavaScript Forum | 10 | Sep 3rd, 2006 19:47 |
| Help with pop-up menu please!!!?? | aseriouslyfunkydiva | Graphics and 3D | 1 | Nov 16th, 2005 15:11 |