• Resolved Sambhur

    (@sambhur)


    Hello WordPress community.

    I really need your help with some CSS I simply can’t figure out. I am currently creating my own theme using Automattic’s starter theme _S (Underscores).

    I want my sidebar to be displayed at the right side of my content, but right now it is displayed under my content. The easy way for me is to define the width of my content, but I also have a full width template and for me it would kinda screw up the full width defining the width.

    Hope anyone can help me. You can see my problem at https://dev.sambhur.com/projects/sam13/blog

    Regrads
    Sebastian!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The easy way for me is to define the width of my content, but I also have a full width template and for me it would kinda screw up the full width defining the width.

    You can generally use page-specific or template-specific CSS classes to target CSS to different pages/templates. In this case, this might work:

    .blog #primary {
        width: 600px;
        float: left;
    }

    Adjust the width according to what you want – and if you’re making it responsive, you may want to use percentages and min/max width with media queries.

    Thread Starter Sambhur

    (@sambhur)

    Defining the page could be a solution for now, but I want it to work as my default template with the sidebar on the right so it won’t fix my problem ??

    Thread Starter Sambhur

    (@sambhur)

    Fixed myself, making new divs for the fullwidth page. Thanks for your help ??

    What was the solution to your problem?

    Thread Starter Sambhur

    (@sambhur)

    I created three sidebars and gave them a div each. Then I gave them all a width which were 33.3% of the full width.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Underscores theme Sidebar and content side by side.’ is closed to new replies.