Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Center Align Lonelyness Theme

Go to End

2 Posts   1321 Views


Community Member, 1 Post

19 September 2010 at 2:36am

Hi everyone,

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

Any help?


Community Member, 181 Posts

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