Re: Width and Center with Plone 2
John Causey <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user,gmane.comp.web.zope.plone.design |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the info!
The fix works great in Firefox (Moz), but does something super-weird in
IE (6): it displays the page at the correct width for just an instant,
and then widens the portal to fit the page! God I hate MS. If anyone has
a clue about why this is happenning, please reply.
Thanks again Michael.
--John
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;
> }
>
> if you need better browser support:
> http://www.thenoodleincident.com/tutorials/box_lesson/basic_centered.html
>
> regards, michael
-------------------------------------------------------
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