iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack (1) Thread Tools
Old June 14th, 2006, 10:04 AM   1 links from elsewhere to this Post. Click to view. #1
New Member
 

Join Date: Jun 2006
Location: uk
Age: 30
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mezema is on a distinguished road
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!
mezema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 14th, 2006, 11:29 AM   #2
Highly Reputable Member
 
masonbarge's Avatar
 

Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masonbarge will become famous soon enough
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.
masonbarge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 14th, 2006, 12:32 PM   #3
Most Reputable Member
 

Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,307
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ukgeoff has a spectacular aura about ukgeoff has a spectacular aura about
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.


ukgeoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 14th, 2006, 12:55 PM   #4
New Member
 

Join Date: Jun 2006
Location: uk
Age: 30
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mezema is on a distinguished road
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
mezema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 14th, 2006, 02:00 PM   #5
Most Reputable Member
 

Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,307
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ukgeoff has a spectacular aura about ukgeoff has a spectacular aura about
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.
ukgeoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 15th, 2006, 12:32 PM   #6
New Member
 

Join Date: Jun 2006
Location: uk
Age: 30
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mezema is on a distinguished road
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
mezema is offline  
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

Bookmarks

Tags
ahover , backgroundposition , issue , ie6


LinkBacks (?)
LinkBack to this Thread: http://webforumz.com/html-xhtml-and-css/6922-a-hover-and-background-position-issue.htm
Posted By For Type Date
background-position IE6 - Zuula Search This thread Refback November 13th, 2008 06:20 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 3 June 1st, 2008 03:53 PM
Making hover image position static plato HTML, XHTML and CSS 3 August 1st, 2007 10:27 PM
Swap Background Image on Hover Andy K HTML, XHTML and CSS 1 February 8th, 2006 12:11 PM
a:hover background chnage gribble HTML, XHTML and CSS 1 August 12th, 2005 04:29 PM


Search Engine Optimization by vBSEO 3.2.0 RC8