It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming CSS Forum

Easy rollover problem

Easy rollover problem

Postby thehen on Thu May 31, 2007 11:14 am

For some reason my CSS rollovers aren't working at all. I've never had this problem before and I can't work out what's wrong.

Here is my code:

Code: Select all
@charset "utf-8";
/* CSS Document */

body {
   background-color: #4b4b4b;
}
.navigation {
   font-family: Tahoma;
   font-size: 12px;
   font-weight: bold;
   color: #6c6c6c;
   text-align: center;
}
a:hover {
   color: #fc8800;
}
a:link {
   text-decoration: none;
   color: #6c6c6c;
}
a:visited {
   text-decoration: none;
   color: #6c6c6c;
}
a:active {
   text-decoration: none;
   color: #000000;
}
body,td,th {

}[code][/code]

I am really new to this and any help would be appreciated.
o:<> thehen

Image

Indie Games
User avatar
thehen
250+ Club
 
Posts: 453
Joined: Tue Sep 26, 2006 12:36 pm
Location: UK

Postby jberry on Thu Jun 07, 2007 4:44 pm

Ok i think this may be your problem. If you are trying to use the rollover in the navigation it would have to look like this. Or atleast this is how I would do it.
Code: Select all
.navigation a:hover {
color: #fc8800;
}
.navigation a:link {
text-decoration: none;
   color: #6c6c6c;
}


and so on this should work for you.

Just one more thing I would change to make it all a bit easier would be to instead of using navigation as a class i would make it an ID by doing like this
#navigation or #navigation a:link

and you would call by using this code.

Code: Select all
<div id="navigation">


then whenever you use say <a herf=" ">
they link would be assigned correctly.

Hopefully this helps
jberry
100+ Club
 
Posts: 143
Joined: Mon Mar 19, 2007 5:40 pm
Location: Atlantic City, NJ


Return to CSS Forum

Who is online

Users browsing this forum: No registered users and 1 guest