Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Adjusting content width depending upon sidebar

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

Page: 1
Go to End
Author Topic: 1069 Views
  • Happysadhu
    Avatar
    Community Member
    33 Posts

    Adjusting content width depending upon sidebar Link to this post

    Hi,
    I would like to know how to set up a template so that if there is no sidebar content (in this case on the right), the main content div width fills up the entire content container. If there is a sidebar, the main content div is narrowed -- for example from 100% to 70% to make room for the sidebar.

    Looking at the blackcandy template, the content id is always set at 70% whether or not the left navigation sidebar is present. However, I would like the main content to fill up (adjust to) the available space.

    Thanks for any help,
    Sam Miller

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