Just an uneducated guess here, but if your html is the same width as your
body, there is nowhere for the body to go. It is perfectly centered in the
html.

(Now, why your html is not centering, I have no idea).

Jerry Johnson
Css Tenderfoot

On 12/11/06, Matt Quackenbush <[EMAIL PROTECTED]> wrote:
>
> Sandra,
>
> I have the width in there; was just posting minimal code since I know how
> much I hate to wade thru a bunch of superflous code.  Here is the actual
> CSS
> rule as written:
>
> html, body {
>     margin: 0 auto;
>     text-align: center;
>     width: 760px;
>     min-width: 760px;
> }
>
>
> Thanks,
>
> Matt
>
>
> On 12/11/06, Sandra Clark <[EMAIL PROTECTED]> wrote:
> >
> > You need a width in there.
> >
> > Another CSS Rule
> >
> > Everything needs to be 100% of the parent, in any case where stuff isn't
> > defined, CSS will always make margin-right large enough to accommodate
> > 100%
> > of the parent.  In this case the parent is html.
> > If using auto, then whatever the difference is will be split between
> > margin
> > left and margin right. Providing that is, that width is declared.
> >
> > body{
> >   width: 80%;
> >   margin: 0 auto;
> > }
> > Also equivalent
> >
> > body{
> > width: 80%;
> > margin: 0 10%;
> > }
> >
> >
> > Sandra Clark
> > ==============================
> > http://www.shayna.com
> > Training in Cascading Style Sheets and Accessibility
> >
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263590
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to