a:hover and background-position issue with ie6

This is a discussion on "a:hover and background-position issue with ie6" within the Web Page Design section. This forum, and the thread "a:hover and background-position issue with ie6 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 Jun 14th, 2006, 13:04
New Member
Join Date: Jun 2006
Location: uk
Age: 29
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
a:hover and background-position issue with ie6

I've created a load of rollover buttons using css so when the link is rolled over, the background-position is changed making the background image of the link move over (to its over state). This works fine in most browsers and does actually work in ie.

However, the problem is that when you roll over the link, the containing area is enlarged for some reason. Can anyone explain why this is happening. Check out the page at http://www.i4cevents.com/new/pages/results.htm
and try rolling over the main buttons along the left hand box.
The css for that is simply

.resultIcons a:hover{
background-position:-71px 0;
color:#545454;
text-decoration:none;
}

I'm pretty sure the changing of background position is the reason for the weird content area enlargement, because when I take out the background-position line, the problem doesn't occur (of course, the images don't change either).

Any help, VERY much appreciated. Regards.


Also, I know about the horrible looking PNG's and I'm working on that. ONE THING AT A TIME!
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 Jun 14th, 2006, 14:29
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a:hover and background-position issue with ie6

Sorry, I tried and I couldn't find it. I will point out, though, that you also have another similar problem in IE7 -- the paragraphs in the right lower box expand right when you roll over the pix.

I remember seeing someone else with this problem a month or two ago -- I think it's somewhere on Webforumz. What is strange is that the width doesn't revert back when you stop the hover.
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 Jun 14th, 2006, 15:32
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a:hover and background-position issue with ie6

Not what you asked but I think should should rethink the scroll bar issue. Three vertical scroll bars and one horizontal one on one page is just...

Site completely broken in Opera. Suggest you take a look.

Footer out of place in IE 6.

W3C validation shows 24 errors.


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 Jun 14th, 2006, 15:55
New Member
Join Date: Jun 2006
Location: uk
Age: 29
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a:hover and background-position issue with ie6

thanks for that. I'm trying to make the thing liquid layout and its proving to be harder than I thought. I know what the errors are: stuff like using inline lists and fixed positioning on elements. ie doesn't support that stuff yet (hopefully).

Do you think it would be better to create a fixed width layout instead. It would give me more control over the elements and their sizes. This would stop millions of scrollbars appearing everywhere.

With regard to the footer, since I'm using fixed positioning on it, I had to use absolute positioning on it in the ie6 style sheet. How can I make it position correctly?

This is slowly turning into a nightmare and it was originally supposed to be a really simple looking site.

Cheers
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 Jun 14th, 2006, 17:00
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a:hover and background-position issue with ie6

At this stage I would design for a fixed width of *00px which means your actual working area is about 770px max.

Have a container div and have the race car image as a background for that.

Within the container have a header, centre and footer div. Don't use any positioning on them. Let them naturally follow each other.

For the two elements within the centre section, use float: left and margin/padding to get them where you want.

Start with that and see how you go.
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 Jun 15th, 2006, 15:32
New Member
Join Date: Jun 2006
Location: uk
Age: 29
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Re: a:hover and background-position issue with ie6

I've sorted out the original problem now (and got the site working in opera ).

I just stumbled across it, but if the links that you roll over are set to relative positioning, the containing area expands once but doesn't go back when you roll off.

When I set the anchor tags to absolute positioning (just for ie), the problem was fixed. Any care to explain why this should work (cos it does)? Cheers
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

Tags
ahover, backgroundposition, issue, ie6

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
nav hover issue styler Web Page Design 3 Jun 1st, 2008 18:53
Making hover image position static plato Web Page Design 3 Aug 2nd, 2007 01:27
Swap Background Image on Hover Andy K Web Page Design 1 Feb 8th, 2006 15:11
a:hover background chnage gribble Web Page Design 1 Aug 12th, 2005 19:29


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


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