#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    78
    Rep Power
    12

    Problem with css mouse-over (maybe javascript fix?)


    I have a navigation bar that works perfectly fine with opera/ns/mozilla ... but works imperfectly in IE. The first nav item works fine, but the last three dont' work right. Instead of the whole box being active, only the text is. Does anyone know how to fix this?


    Web Site

    Css File
    --blissdev
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Inside the GNU/Hurd kernel
    Posts
    492
    Rep Power
    12
    That's because Internet Explorer sucks at CSS.
    But that menu does not even work in Mozilla and Konqueror,the only thing that happens is that the background color of the links changes on mouseover (and even that doesnt work in Konqueror).
  4. #3
  5. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Well, it looks fine in ie5.0 on win2k.

    You might try setting the width/height of your .menu links to 100%. I'm not sure if that will make a difference or not.
    -james
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    78
    Rep Power
    12
    i specifically tested it in mozilla and it works fine.
    --blissdev
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    Do what bricker said
    Code:
    .menu a,.menu a:link,.menu a:active,.menu a:visited {
    	width: 100%;
    	background : #0066cc;
    	color : white;
    	text-decoration : none;
    	line-height : 16px;
    	display: block;
    	}
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    78
    Rep Power
    12
    thanks degsy and bricker
    --blissdev

IMN logo majestic logo threadwatch logo seochat tools logo