data/TWiki/PatternSkinCssCookbookCenterPage.txt
author Colas Nahaboo <colas@nahaboo.net>
Mon, 11 Aug 2008 20:33:37 +0200
changeset 2 7bc60a767fa4
parent 0 414e01d06fd5
permissions -rw-r--r--
TWiki-4.2.2 Release
colas@0
     1
%META:TOPICINFO{author="TWikiContributor" date="1129333294" format="1.1" version="3"}%
colas@0
     2
colas@0
     3
---+!! PatternSkinCssCookbook Recipe: Center the page
colas@0
     4
colas@0
     5
*This recipe shows how center the page horizontally and vertically.*
colas@0
     6
colas@0
     7
<div class="twikiHelp">
colas@0
     8
This line loads the extra style definition:
colas@0
     9
<verbatim>
colas@0
    10
   * Set USERSTYLEURL = %ATTACHURL%/centerpage.css
colas@0
    11
</verbatim>
colas@0
    12
You can write this line in %SYSTEMWEB%.TWikiPreferences, in WebPreferences, in your user topic or on a single page.
colas@0
    13
</div>
colas@0
    14
colas@0
    15
colas@0
    16
%META:FILEATTACHMENT{name="centerpage.css" attr="" autoattached="1" comment="css to frame the page centered on the screen" date="1129323328" path="centerpage.css" size="259" user="TWikiContributor" version=""}%