HighDots Forums  

Why position: relative renders differently in IE6 and FF?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Why position: relative renders differently in IE6 and FF? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
alfred.taylor@gmail.com
 
Posts: n/a

Default Why position: relative renders differently in IE6 and FF? - 01-27-2006 , 04:15 PM






In reference to this page:

http://www.celebration.org/cgi-bin/p...hineconfig.txt

I have it setup so that a "content" div contains the form and
everything overlayed on the image. This div is positioned relatively
within the parent div (which houses the background image).

In IE6, things look the way I'd like them to look. The "content" div
is centered on the screen. However, in FF the form is way to the left.
It seems FF is calculating it's position relative to the outermost div
as opposed to it's immediate parent.

Am I missing something here?

Thanks,
-A


Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: Why position: relative renders differently in IE6 and FF? - 01-28-2006 , 03:37 PM






alfred.taylor (AT) gmail (DOT) com wrote:
Quote:
I have it setup so that a "content" div contains the form and
everything overlayed on the image. This div is positioned relatively
within the parent div (which houses the background image).

In IE6, things look the way I'd like them to look. The "content" div
is centered on the screen. However, in FF the form is way to the left.
It seems FF is calculating it's position relative to the outermost div
as opposed to it's immediate parent.

FF is doing what you asked. div#content is placed exactly where it
should be relative to div#background.
If you wish to center div#content, use an appropriate method:
margin-left: auto;
margin-right: auto;

BTW you are using XHTML syntax in a HTML 4.01 Strict DTD.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.