Re: Width and Center with Plone 2

Tonico Strasser <[email protected]>
Newsgroups gmane.comp.web.zope.plone.design
Message-ID <[email protected]>
Michael Zeltner wrote:

> John Causey wrote:
> 
>> Hey all,
> 
> 
> hey john
> 
> just pointing to plone-design again, which is the correct list for that 
>  issues/questions: http://plone.org/documentation/lists#design (it's 
> cced so you can answer there too)
> 
>> How do I customize the site to have a specific width (not take up the 
>> full viewport), AND be centered? I've found that modifying the 
>> PloneColumns.css's body tag with "width: 720px;" solves the width 
>> issue, but I CAN'T FOR THE LIFE OF ME figure out how to center the 
>> damn page!
> 
> 
> don't customize ploneColumns.css, customize ploneCustom.css you can 
> override the plone stuff there, and it updates better.
> 
> just override the width (it should be em, because of scaling 
> (accessibility)) there aswell.
> 
> the following code snippet should do it for most modern browsers (not 
> tested):
> 
> body {
>     text-align: center;
> }
> 
> #visual-portal-wrapper {
>     width: 40em;
>     margin: 0 auto;
> }

I think the wrapper should be:

#visual-portal-wrapper {
     text-align: left;
     width: 40em;
     margin: 0 auto;
}

Tonico



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.