Jump to:

1374 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » Center Align Lonelyness Theme

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 919 Views
  • atkeezer
    Avatar
    Community Member
    1 Post

    Center Align Lonelyness Theme Link to this post

    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.
    http://silverstripe.org/lonelyness/

    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.

    Any help?
    Thanks

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Center Align Lonelyness Theme Link to this post

    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

    Rich

    919 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.