Strange MSIE hover bug?

This is a discussion on "Strange MSIE hover bug?" within the Web Page Design section. This forum, and the thread "Strange MSIE hover bug? are both part of the Design Your Website category.



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

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 27th, 2004, 19:00
New Member
Join Date: Oct 2004
Location: USA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Strange MSIE hover bug?

Haven't seen this discussed before...link hovers work fine in MSIE 6 however whenever I wrap the link in a div or span to specifiy where I want it to be the linkhover effect goes poof but still works in Mozilla.

Code: Select all
/* Style from external stylesheet */

.link { text-decoration: none;	color: #CCCCCC; }
.link:visited { color: #CCCCCC; }
.link:hover { color: #4E4E4E; }

.mainbody {
     position: absolute;
     top: 50px;
     left:  50px;
}

.linkpos {
     position: absolute;
     top: 100px;
     right: 30%;
}
Code: Select all
// HTML this works as desired in MSIE 6 but has no position attributes

<a class="link" href="http://www.someurl.com>This is a Link</a>

Code: Select all
// HTML this has position attributes but does not work at all.
<span class="linkpos"><a class="link" href="http://www.someurl.com>This is a Link</a></span>
however when I use a linkhover affect on a link used inline with normal text that may have position and style attributes applied to it it works.

Code: Select all
// HTML This hover affect works in MSIE 6

<div class="mainbody">
Some random text blah blah blah blah blah <a class="link" href="http://www.someurl.com>Click on this Link</a> Some more random text blah blah blah blah.
</div>
This all works in Firefox or Mozilla or Opera etc - am I smoking crack? why does this fail with MSIE?

  #2 (permalink)  
Old Oct 28th, 2004, 07:57
New Member
Join Date: Sep 2004
Location: Croatia
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Because IE is silly, and about as standard compliant as a 4 year old sweatshop worker making *brand name deleted* shoes.

Opera and Firefox know how to read CSS and W3C standards, thus it works.

Oh, and
// HTML this works as desired in MSIE 6 but has no position attributes

<a class="link" href="http://www.someurl.com>This is a Link</a>


class link has no positioning to it, so that might be it
  #3 (permalink)  
Old Oct 29th, 2004, 02:15
New Member
Join Date: Oct 2004
Location: USA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by Ranko
Because IE is silly, and about as standard compliant as a 4 year old sweatshop worker making *brand name deleted* shoes.

Opera and Firefox know how to read CSS and W3C standards, thus it works.
<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">
Yeah I've figured that out I'm just wondering if there is a workaround



<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />
class link has no positioning to it, so that might be it <hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">

I know that - you missed my point. The hover affect works when no position atributes are applied to it, but when you snug things into divs or spans it flips the you the bird.
  #4 (permalink)  
Old Oct 29th, 2004, 19:53
New Member
Join Date: Oct 2004
Location: USA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I figured it out. It was the :visited class. I like to remove the visited attribute from most of my menus and usually make it the same color as the original link however MSIE was overriding the :hover feature and not letting it work when it was applying the visted attribute so I just removed it and everything seems to work fine now.
Closed Thread

Tags
strange, msie, hover, bug

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
Msie doesn't make my links links.. delusion Web Page Design 7 Nov 7th, 2007 08:05
[SOLVED] MSIE doesn't show my design correctly (what a surprise) delusion Web Page Design 6 Oct 26th, 2007 20:16
Strange thing Daniel Webforumz Cafe 3 Sep 14th, 2007 17:27
Strange gap on left of H2 tag philiph Web Page Design 4 Jul 17th, 2007 08:06


All times are GMT. The time now is 19:31.


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