[pmwiki-users] Centering a fixed width page
Petko Yotov
5ko at 5ko.fr
Wed Aug 6 13:36:39 CDT 2014
Try in your skin.css file something like:
body { margin: 0 auto; }
Instead of "body", you can use any full width element of your wiki, eg.
"#wikihead", "#wikimid" or if you have a global wrapper, maybe "#globalwrap".
Petko
Randy Brown writes:
> I have a fixed width skin that I based on PmWiki's default skin, after
> making some changes to it. Not knowing enough html, I haven't figured out
> how to center my page between the left and right edges of the window.
> PmWiki's default skin doesn't have that problem, because it's not fixed
> width. I know that some other skins do centering, but the couple I've looked
> at also seem to do lots of other things. Does anyone know a simple way to
> center a fixed width page, or else is there a skin that already exists that
> is very close to PmWiki's default skin but that does what I want?
More information about the pmwiki-users
mailing list