Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS Absolute Position Not Working In Internet Explorer
Old 06-29-2012, 03:48 PM CSS Absolute Position Not Working In Internet Explorer
Super Talker

Posts: 108
Trades: 0
I have CSS code which works perfect in Firefox and Safari but in IE it is hidden, not even sure where it puts it, way off. I am overriding an eCommerce template stylesheet so there may be hidden CSS affecting this, not sure.

The wrapper is center aligned, aprox 1000 width, so I am just trying to position inside of that body element.

Any ideas on why IE hates this so much?

#Div 7 (shoppingcart) {
z-index:-1;
position: absolute;
left: 770px;
top: 50px;
margin-top: 0;
padding-top: 0;
}

Last edited by Boar; 06-29-2012 at 05:55 PM..
Boar is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2012, 04:55 PM Re: CSS Absolute Position Not Working In Internet Explorer
chrishirst's Avatar
Defies a Status

Posts: 43,971
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Because IE has never handled absolute positioning overly well and it certainly does not handle negative z-index values because it actually places them "underneath" the body element
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-29-2012, 04:59 PM Re: CSS Absolute Position Not Working In Internet Explorer
Super Talker

Posts: 108
Trades: 0
Thanks but the z-index value works fine; it was only when I tried aboslute positioning the problems occured.

Microsoft claims it supports it that is why I was curious; http://msdn.microsoft.com/en-us/libr...te_Positioning

This is sort of a dirty way of doing things anyway - so I totally agree with you; my other post involves fixing it the clean way - but just getting a bit desperate...
Boar is offline
Reply With Quote
View Public Profile
 
Old 06-29-2012, 05:08 PM Re: CSS Absolute Position Not Working In Internet Explorer
chrishirst's Avatar
Defies a Status

Posts: 43,971
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
z-index only applies to positioned elements.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-29-2012, 05:11 PM Re: CSS Absolute Position Not Working In Internet Explorer
Super Talker

Posts: 108
Trades: 0
Yes, I had a relative position previously to make z-index work; the relative position did not affect anything negatively.
Boar is offline
Reply With Quote
View Public Profile
 
Old 06-29-2012, 06:54 PM Re: CSS Absolute Position Not Working In Internet Explorer
Junior Talker

Posts: 1
Trades: 0
Give the parent element a relative position and see if that helps.
vanal is offline
Reply With Quote
View Public Profile
 
Old 06-29-2012, 07:54 PM Re: CSS Absolute Position Not Working In Internet Explorer
Super Talker

Posts: 108
Trades: 0
Quote:
Originally Posted by vanal View Post
Give the parent element a relative position and see if that helps.
Apply the position to like the header wrapper or the main body wrapper?
Boar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Absolute Position Not Working In Internet Explorer
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19984 seconds with 11 queries