Jump to:

3401 Posts in 979 Topics by 855 members

Template Questions

SilverStripe Forums » Template Questions » Content Alignment on Home Page

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

Page: 1
Go to End
Author Topic: 917 Views
  • jfusco
    Avatar
    Community Member
    52 Posts

    Content Alignment on Home Page Link to this post

    I installed in tutorial mode. All of my standard files are based on the tutorial. As I went through the tutorial, I opted not to add the browser poll. what I have now is a phantom 'column' on my home page where there is space for the poll or other information but it pushes my content to the left side of the page. The banner is centered just fine.

    Eaxmple: http://www.unclebubby.com/wavs2

    How do I get rid of the phantom column and center my content? I've been looking through the php, css and ss but can't for the life of me figure out where it is.

    Thanks,
    Joe

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Content Alignment on Home Page Link to this post

    are you talking about a page like this one. I think i see what you mean.

    There is no sidebar, its just that the content width is set to 70% and is floated left, so there is a 30% space on the right. To center the content at 70% width add this to the css for #content{ margin: 0 auto; }

    alternatively you can remove the <div id="content"> from the template so that the page fills 100% width. You could also (and this would be my choice) add the Menu2 onto those pages which would also help with user navigation.

    Aram

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Content Alignment on Home Page Link to this post

    I ended up adding a 15% left margin and that seems to have done the trick. I like the auto option better, though. That way I can noodle with the width all I want and the system takes care of it.

    917 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.