1320 Posts in 376 Topics by 500 members
|Go to End|
19 September 2010 at 2:36am
I'm new here and this is my first post on the forums.
I recently set up/installed a hosting server for a friend with the Lonelyness template installed.
I would like to center justify the theme so it appears in the middle of my browsers window but cannot find any section to add the code in layout.ss.
19 September 2010 at 3:14pm
Welcome to the Forum in that case
To centre-align you should use the css rule "margin: 0 auto;" either: 1. combine this rule with each of the container elements in question, 2. add a css class with this rule to each of the container elements or, 3. wrap everything inside the body tag (as this theme doesn't have a wrapper already) in a new div with this rule applied to it.
personally I'd go for option 2. I try to avoid non-semantic markup whenever possible. You may need to make a couple of other adjustments because of existing rules (padding etc).
hope that helps
|Go to Top|