CSS Hover Effect In IE

This is a discussion on "CSS Hover Effect In IE" within the Web Page Design section. This forum, and the thread "CSS Hover Effect In IE 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 4th, 2008, 08:00
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
CSS Hover Effect In IE

I have a menu list:
Code: Select all
<div id="menuTop">
<ul class="ul">
  <li class="sel" id="but1"><a href="#">Link</a></li>
  <li id="but2"><a href="#">Link</a></li>
  <li id="but3"><a href="#">Link</a></li>
  <li id="but4"><a href="#">Link</a></li>
  <li id="but4"><a href="#">Link</a></li>
  <li id="but4"><a href="#">Link</a></li>
  <li id="but4"><a href="#">Link</a></li>
</ul>
</div>
and the CSS:
Code: Select all
#menuTop ul li {
    float: right;
    display: block;
    margin-right: 2px;
    height: 30px;
    width: 110px; 
    background: url('../img/active.png');
    cursor: pointer;
    height: 30px;
}
#menuTop ul li:hover {
    background: url('../img/hover.png');
}
#menuTop ul li.sel {
    background: url('../img/down.jpg');
}
Works fine with FF. But in IE the hover effect dont seems to work! Any Tips? Thanks...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote

  #2 (permalink)  
Old Feb 4th, 2008, 08:09
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,280
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: CSS Hover Effect In IE

It wont work in IE6 because IE6 only allows :hover to be applied to an 'a'. DOes it work in IE7?
__________________
Resources Administrator


Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
  #3 (permalink)  
Old Feb 5th, 2008, 05:53
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: CSS Hover Effect In IE

Yes...!!! I've fixed them!
I just don't know how but I've fixed it!
You are right Jack about ^
I'll explain my solution later, Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #4 (permalink)  
Old Feb 8th, 2008, 08:48
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,432
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: CSS Hover Effect In IE

Monie, can you post your solution?

Thanks
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #5 (permalink)  
Old Feb 11th, 2008, 00:02
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: CSS Hover Effect In IE

Sorry for the delay answer... too much holiday I guess
Quote:
Originally Posted by Monie View Post
[code]
#menuTop ul li:hover {
background: url('../img/hover.png');
}
I just change this CSS ^ into something more specific like this:
Code: Select all
#menuTop ul.list li a:hover {
    background: url('../img/hoveractive.png') no-repeat;
    background-position: bottom;
    font: bold 12px verdana;
    color: #000;
}
and that solved both FF and IE7
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #6 (permalink)  
Old Feb 11th, 2008, 07:54
Ed Ed is online now
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 692
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Hover Effect In IE

I can't see how that worked! (Not that it did.)
Maybe it was something else. Unfortunately, I don't think Firefox cares about the specificness of your Cascading Style Sheets, nor mind Internet Explorer!

lol

Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
  #7 (permalink)  
Old Feb 12th, 2008, 00:43
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: CSS Hover Effect In IE

Well maybe you are right!
I am just playing so hard with them and maybe I forgot which CRUCIAL step solved the problem!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
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
how to create this effect mybmodel Graphics and 3D 11 Apr 29th, 2008 19:05
Hover effect for sub menus ? Oak Web Page Design 28 Feb 22nd, 2008 23:40
css hover effect error jlbantang Web Page Design 6 Oct 13th, 2007 12:30
What is this effect? papalazarou78 Flash & Multimedia Forum 4 May 17th, 2007 19:17
Cool effect Cobrastyle Graphics and 3D 5 Aug 5th, 2006 10:09


All times are GMT. The time now is 16:29.


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