Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-04-2007, 09:44 AM CSS Rollovers
Skilled Talker

Posts: 50
Location: Finland
Trades: 0
I have a CSS rollover menu and it works great in Firefox, but not in IE. When I hover over the buttons they look ugly and the background disappers for a few seconds. I tried fixing it by adding

* html .nav a:hover {
visibility: visible;}

but that only fixed the font.

Here's my CSS:

Code:
.nav a {
display: block;
width: 188px;
background: inherit;
background-image: url(images/link.jpg);
padding: 11px 0px 11px 0px;
text-indent: 17px;
text-decoration: none;
text-transform: capitalize;
font: bold 9pt Verdana, arial;
color: #CCCCCC;}

.nav a:hover {
background: inherit;
background-image: url(images/hover.jpg);
color: #FFFFFF;}

* html .nav a:hover {
visibility: visible;}
And HTML:

HTML Code:
<div class="nav">

<a href="#">&raquo; Link goes here</a>
<a href="#">&raquo; Link goes here</a>
<a href="#">&raquo; Link goes here</a>
<a href="#">&raquo; Link goes here</a>

</div>
I can't use javascript, cos it requires to put my buttons directly on the page, but I have them all as backgrounds...

So, is there anything I can do to fix this, or is IE hopeless?

Hope someone can help!
Catie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-04-2007, 04:26 PM Re: CSS Rollovers
Angelosanto's Avatar
Webmaster Talker

Posts: 548
Name: Danny Angelosanto
Trades: 0
I've often come across similar problems when working with these two browsers, and occasionally the only thing left to do is slightly change it for one of the browsers.

Your post didn't say whether you use seperate stylesheets for each browser? If not then it is a must. It is a small piece of JavaScript that anyone will be able to tell you.

However if you do already use seperate stylesheets, then I can only suggest slightly changing the IE stylesheet. The two browsers simply don't display everything the same.

Hope tht helped

PS - If you need that JavaScript then just ask
__________________
"The only reason some people get lost in thought is because it's unfamiliar territory."
_____________________________________
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 03-04-2007, 05:47 PM Re: CSS Rollovers
Junior Talker

Posts: 2
Trades: 0
I viewed this in both Firefox and IE (7), and it works and looks the same in both..

Maybe you have some other styles that messes it up or something like that..?
EDPB is offline
Reply With Quote
View Public Profile
 
Old 03-05-2007, 03:09 PM Re: CSS Rollovers
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
No, IE is not hopeless, and it does do background rollover buttons quite nicely, w/o a ton of hassle either.

The *html is not necessary at all, and clearly doesn't work.
You should put your menu items in as an unordered list.
If you're going to use pseudo classes, then they MUST be put in in a specific order:
a:link
a:hover
a:visited
a:active

think LoVeHAte

The background: inherit isn't necessary.

It would also be easier to see ALL of your CSS and HTML to determine what else may be interfering, if anything.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-05-2007, 03:17 PM Re: CSS Rollovers
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
Maybe that will be helpful: http://wellstyled.com/css-nopreload-rollovers.html
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Reply     « Reply to CSS Rollovers
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41636 seconds with 12 queries