Support » Themes and Templates » Container, Main, Sidebars

  • Resolved JCKnoell


    Here is the CSS I am using:

    #container {
       background: url(
       overflow: auto;
    #main {
       margin: auto;
    #sidebar {
       float: left;
    #heading {
    margin-left: 80px;
    align: center;
    text-align: center;
    #sideright {
       width: 30%
       float: right;

    For some reason, the main div is centered, which is great, but it’s pushed the left sidebar div down so that the pictures are below the fold… Any ideas why this would happen? The html is literally just a couple img tags in the sidebar and an iframe in the main with no additional styling…

    <div id="container">
       <div id="main">
    	<div id="heading">
    	<h1>Header Here</h1>
    	<h3>Subhead here</h3>
    	<div id="video">
    		<iframe width="900" height="506" src="//" frameborder="0" allowfullscreen></iframe>
       <div id="sidebar">
    img.block{display: block;}
    <img class="block" style="padding-left:20px;" height="438" width="413" src="Image Here">
    <img class="block" style="padding-left:20px; padding-top: 20px;" height="207" width="413" src="Image Here">
Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you provide a link to the page? I don’t think it’s anything on, because I don’t see a YouTube video on any of the pages. It’s easier to see what’s going on using a tool like Firebug against a live site.

    Sorry, duh. Meant to do that. the site is

    Obviously it’s not finished, nor is it supposed to be “live” yet.

    Nevermind, I figured this one out. Thanks for the help! 🙂

    My sidebar div was listed after my main div in my code. really simple fix.

    Let’s try taking off width: 100% and adding display: inline-block; to #container first. That should get the left sidebar in place. The width of the iframe for the video might be a problem, though, for the right sidebar; it’s fairly wide. You might try cutting the dimensions in half.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Container, Main, Sidebars’ is closed to new replies.