/    Sign up×
Community /Pin to ProfileBookmark

Any way to break out of parent div attributes in IE with absolute position?

Hi all, nice to find an active forum. Have a unique situation for y’all.

Basically the structure is so:

[B][COLOR=Red]<div style=”width: 500px;” id=”container_div_with_inconsistent_naming”>

<!– stuff I can modify –>
<div style=”position: absolute; top: 0px; left: 0px; width: 100%; background: red;”>
blahblahblah
</div>
<!– /stuff I can modify –>

other stuff
</div>[/COLOR][/B]

I want the red stripe to span 100% of the browser window, but in IE it is accepting the attribute of the parent div and only spanning 500px. Firefox renders suitably.

Caveat #1: I cannot modify the first div
Caveat #2: The first div ID has an inconsistent naming convention across pages, and various widths assigned to it, so I cannot close the div before my red stripe and reopen the div with the same ID. The content in “other stuff” is reliant on the attributes set by the container div.

Any help would be appreciated, I’ve been searching forever.

thanks
mike

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@ray326Apr 20.2006 — Does the page have a valid doctype?
Copy linkTweet thisAlerts:
@MikeDeuceauthorApr 20.2006 — It does not, and unfortunately it's not something I can alter either ?

Thanks for the response!
Copy linkTweet thisAlerts:
@ray326Apr 20.2006 — That means IE is running in quirks mode and it may be tough to fix.
Copy linkTweet thisAlerts:
@MikeDeuceauthorApr 20.2006 — Figures I'd get myself in a situation like this... thanks for help anyway! ?
×

Success!

Help @MikeDeuce spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...