Hello all!
I've been lurking in these forums for a good while as I've recently started dabbling in web design. As such, I find myself stumped. Despite my relatively thorough search on Z-index bugs with Internet Explorer I've yet to find anything that solves my issue, though I've tried a good handful of suggested solutions.
I've got a site where I have a logo followed by an embedded flash file. I'd like the logo to slightly overlap the flash file. This works beautifully in both Chrome and FF, though as the story seems to go it has problems in IE and stacks behind the flash file. Am I missing something seemingly obvious to get this to work correctly? The applicable code is below:
Here are the applicable CSS codes:
I've been battling with this for about three hours now and while I'm certain the solution is likely very simple I'm really stumped. Any help would be greatly appreciated. Thanks so much to anyone who has suggestions. Cheers!
EDIT:
I've uploaded a test page of the site to show what I'm talking about specifically. Obviously the site is a work in progress but in Chrome and FF the logo overlaps the flash, but not in IE. I'm thoroughly stumped.
I've been lurking in these forums for a good while as I've recently started dabbling in web design. As such, I find myself stumped. Despite my relatively thorough search on Z-index bugs with Internet Explorer I've yet to find anything that solves my issue, though I've tried a good handful of suggested solutions.
I've got a site where I have a logo followed by an embedded flash file. I'd like the logo to slightly overlap the flash file. This works beautifully in both Chrome and FF, though as the story seems to go it has problems in IE and stacks behind the flash file. Am I missing something seemingly obvious to get this to work correctly? The applicable code is below:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Site Title</title> <link href="_css/main.css" rel="stylesheet" type="text/css" media="screen, projection" /> </head> <body> <div id="wrapper"> <div id="header"></div> <div id="contentbackground"> <div id="logo"></div> <div id="hamster"><object type="application/x-shockwave-flash" style="outline:none;" data="http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.swf?up_eyeColor=000000&up_foodColor=BD9E20&up_earColor=BFB58E&up_tailColor=D9D1B0&up_wheelSpokeColor=A6A6A6&up_bgColor=F0F0F0&up_snoutColor=F7F4E9&up_feetColor=BFB58E&up_bodyColor=D4CAA5&up_wheelOuterColor=AB3232&up_waterColor=E0EFFF&up_wheelColor=CFCFCF&up_wheelCenterColor=DAE02F&" width="370" height="275"><param name="movie" value="http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.swf?up_eyeColor=000000&up_foodColor=BD9E20&up_earColor=BFB58E&up_tailColor=D9D1B0&up_wheelSpokeColor=A6A6A6&up_bgColor=F0F0F0&up_snoutColor=F7F4E9&up_feetColor=BFB58E&up_bodyColor=D4CAA5&up_wheelOuterColor=AB3232&up_waterColor=E0EFFF&up_wheelColor=CFCFCF&up_wheelCenterColor=DAE02F&"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param></object></div> <div id="text"> <p id="checkback">Subtext goes here.</p></div
Code:
#wrapper { position: relative; padding: 0; width: 985px; margin: 0 auto; } #header { background: url(../_images/header.jpg); height: 36px; width: 985px; } #contentbackground { background: url(../_images/contentbackground.jpg) repeat; padding-top: 5px; } #logo { background: url(../_images/logo.png) no-repeat; height: 325px; width: 428px; margin-right: auto; margin-left: auto; z-index: 5; position: absolute; } #hamster { height: 275px; width: 400px; margin-right: auto; margin-left: auto; margin-top: -40px; z-index: -5; } #checkback { font-family: Verdana, Geneva, sans-serif; font-size: 95%; font-weight: bold; text-align: center; padding: 15px; margin-bottom: 125px; }
EDIT:
I've uploaded a test page of the site to show what I'm talking about specifically. Obviously the site is a work in progress but in Chrome and FF the logo overlaps the flash, but not in IE. I'm thoroughly stumped.
Comment