Previous Message
Next Message

IE-7: background not getting centered

Sent by David Laakso on 20 October 2008 17:05


Gintautas Simkus wrote:
>
>
> It looks like IE-6 doesn't go well with absolute positions. Though position:
> relative didn't work for me, either one of IE's or FF wouldn't render
> properly. Now I want to shout out a few strong words, but whatever. Anyway
> this got me thinking, what can you accomplish with absolute positioning that
> you can't with relative?
>
> The above code fixes the "top" of the pyramid, but still the BG in IE-7 is
> buggy. So David could you take a look at the updated version and suggest
> something for the IE-7 background glitch? overflow-y ain't working.
> Background is centered in both IE6 and IE8, not to mention all other
> browsers, this must be very IE7-specific.
>
>   


RE: <http://www.archsite.net/>


The background image seems to be centered on this end in all browsers.
The simplest means to position the pyramid image, considering the 
alternatives with your current positioning scheme, is to move #pyr_top 
in the markup to be the first id to open and the first id to close.

Please see (quick checked in IE/6.0, IE/7.0, and some compliant Mac 
browsers:
<http://www.chelseacreekstudio.com/ca/cssd/tech.htm>
css
<http://www.chelseacreekstudio.com/ca/cssd/tech_files/style000.css>

There is nothing "wrong" with any of the positioning methods [1] 
currently available-- including the use of position relative and 
absolute. In general, until something better comes along in the future, 
float constructed layouts where content determines height tend to be far 
less restrictive, and  less problematic than those structured nearly 
entirely (such as yours)  with absolute positioning.

[1] <http://www.w3.org/TR/CSS21/visuren.html#positioning-scheme>



-- 

A thin red line and a salmon-color ampersand forthcoming.

http://chelseacreekstudio.com/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: