Jump to content

Recommended Posts

Hi there,

I'm sort of familiar with CSS - enough that I can google an answer up.  This problem, however, has me pulling my hair out.

My problem is with this page:

http://65.57.104.50/template/template.htm

On Mac Firefox, Mac Safari, and Windows Firefox, this does what I want. On IE Windows, the flash animation will not center.

The HTML is essentially this (feel free to look at the source):

<div id=flash>
My flash
</div>
<div id=thepage>
<div id=wholepage>
The page
</div>
</div>

And the CSS:

#flashpage{
position: absolute;
width:100%;
text-align: center;
z-index:7;
}

#thepage{
width:730px;
background:#BFBFBF;
margin-left: auto;
margin-right: auto;
margin-top: 30px;

}

#wholepage{
width:700px;
background:#BFBFBF;
margin: auto;
margin-top: 100px;
text-align:left;
}

Can anyone shed some light on why this is not working? The flash is transparent, and I am trying to make it float above the page, centered. However, I need it to always be centered with the page.

Thank you VERY MUCH!

-thejerz
Link to comment
https://forums.phpfreaks.com/topic/34090-absolute-liquid-layout-ie-problem/
Share on other sites

KingPhilip,

Thanks very much for your comment.

Since the flash is transparent and I want it to float on top of the page, absolute is required.  It is essentially anchored to the top.  On IE, it seems the top and 500px to the right.

This is so frustrating!

Weird!  Anyone else?

-thejerz
I would try playing with the absolute positioning in the #flashpage div. It looks like it's down some from the top in IE 6.0.
You could also try text center on a body ID tag.

#body{
text-align: center;
margin: 0, auto;
}
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.