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
Absolute Positioning with dynamic content/hidden divs in IE
Old 11-28-2006, 05:24 AM Absolute Positioning with dynamic content/hidden divs in IE
Junior Talker

Posts: 1
Trades: 0
Hi,

I have a website that is using what I call dynamic content/hidden divs. For example, when you click a checkbox another div pops down.

The problem I'm having is that in IE6 (Firefox/IE7/Opera etc are fine) the absolute positioning does not move after a hidden div is shown. This is an issue as I have some classes that have a background image to provide a gradient border effect. The classes are absolute positioned at the bottom of the page as follows:

Code:
.contentarea .lbb { background: url(../images/wrapper/content_borderlb.gif); position: absolute; bottom: 34px; height: 134px; left: 0; } /*for the left gradient border*/

.contentarea .rbb { background: url(../images/wrapper/content_borderrb.gif); position: absolute; bottom: 34px; height: 134px; right: 0px; width: 5px;} */for the right gradient border*/
When you expand the DIV in IE, the page expands, but those absolute positioned divs stay in exactly the same place! The result can be seen in this comparison screen shot (the problem issue is hilighted with an arrow):
http://joshsphotos.com/absolute/comparison.gif

Does anyone have any suggestions?

FYI, the page is available here so you can see yourself. If you test it on Firefox/IE7 vs IE6 you should see what I'm talking about:

http://joshsphotos.com/absolute/star...withicons.html
http://joshsphotos.com/absolute/css/style.css

Thanks!
Josh
maizey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-28-2006, 11:54 AM Re: Absolute Positioning with dynamic content/hidden divs in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
So, you're putting an absolutely positioned div INSIDE another absolutely positioned div ?? You're just asking for trouble with that layout, especially with IE.

You might want to read this: http://www.positioniseverything.net/posbugs.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-29-2006, 08:51 PM Re: Absolute Positioning with dynamic content/hidden divs in IE
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
maybe is cause your are setting the bottom? or try background-repet: and background-position, it seems to me that when you expand it the bottom is still set to 34px and you are expaning from that 34 down.

Hope you understand my point
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Reply     « Reply to Absolute Positioning with dynamic content/hidden divs in IE
 

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.20780 seconds with 12 queries