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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 4th, 2008, 08:00
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 4th, 2008, 08:09
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,404
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 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?
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 5th, 2008, 05:53
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 8th, 2008, 08:48
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,707
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: CSS Hover Effect In IE

Monie, can you post your solution?

Thanks
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 11th, 2008, 00:02
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 11th, 2008, 07:54
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 12th, 2008, 00:43
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 23:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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