Jump to:

2985 Posts in 761 Topics by 740 members

Template Questions

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 741 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

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