miriam clinton (iriXx) wrote:
> Hi,
>
> I'm working on a design at the moment using the width + margin: auto;
> trick to centre the main container (in this case a table, ick, because i'm
> adapting a Sharepoint master page and dont want to go through too much
> hell figuring it out from scratch.
>
> My design works beautifully in Firefox - I begin the table tag just after
> the <body> tag and before the <form> tag on the aspx page, set width to
> 80% and margin-auto. This has the effect of centring my table in Firefox
> but aligning it left in IE7.
>
> thanks
> iriXx
>   

Dunno. Try:
<body>
<div id="anchor">
<table>
<whatever else you got>
</div><!--/anchor-->
</body>

css
body {text-align: center;}
#anchor {width: 80%; margin: 0 auto;text-align: left;}

-- 

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

http://chelseacreekstudio.com/

______________________________________________________________________
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