Adam - I am using the transitional Doctype in this case. Your code snippet left 
out the left and right property values which caused the p tag to "float" 
outside and over to the right in IE6 & 7, even with the width set to 100% - but 
as soon as those two values were added, everything fell into place in both IE 
and all remained well in the other browsers. 

As an aside - why am I not receiving all email discussions? I missed Adam's 
post and am only seeing now in Bill's response.  




--- On Wed, 7/9/08, Bill Brown <[EMAIL PROTECTED]> wrote:

> From: Bill Brown <[EMAIL PROTECTED]>
> Subject: Re: [css-d] Centering Element W Absolute Positioning?
> To: "Adam Ducker" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED], "CSS Discuss" <[email protected]>
> Date: Wednesday, July 9, 2008, 4:54 PM
> Adam Ducker wrote:
> > Ellie,
> > 
> > I'm interested to know what doctype are you using
> (if any).  The method 
> > I outlined works fine for me in all browsers on XHTML
> transitional but 
> > my knowledge of any quirks with regular HTML has
> softened over the last 
> > few years.
> > 
> > It seems like "left: 0;" and "right:
> 0;" in conjunction would be 
> > superfluous.
> > 
> > -Adam Ducker
> 
> Adam,
> 
> For absolutely positioned elements left:0;right:0 is
> essentially the
> same thing as width:100%...except that IE6 won't
> recognize it as such,
> honoring /only/ the right /or/ the left setting. Under
> normal
> circumstances, width:100% will give you the effect you
> want...unless
> you're using borders, margins, or padding, in which
> case of course, the
> width of your box becomes
> width:100%+borders+margin+padding.
> 
> In Ellie's case, width:100% would have probably done
> the trick.
> 
> Hope it helps.
> Bill
> 
> 
> 
> -- 
> /**
>  * Bill Brown
>  * TheHolierGrail.com & MacNimble.com
>  * From dot concept...to dot com...since 1999.
>  ***********************************************/


      
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to