Support » Themes and Templates » Display 2 sidebar align of both sides of the posts

  • Hi,

    I use 2 sidebars on my blog. They have to be on both sides of the main column of posts. (one on the left and an other one the right) But when i add a second sidebar and try to change the position the 3 colums (sidebarleft, posts and sidebar) are not align.

    My css is like that:

    #sidebar
    {
     padding: 0 0 10px 0;
     margin-left: 645px;
     width: 190px;
    }
    
    #sidebarleft
    {
     padding: 0 0 10px 0;
     /*margin-left: -624px;*/
     width: 190px;
    }

    And my index.php:

    get_header(); ?>
    //Display sidebarleft
    <?php get_sidebar('2'); ?>
    
    	<div id="content" class="narrowcolumn" role="main">
    //display posts
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Do you have ideas to align those sidebars?

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not without seeing the site, no.

    Sorry,
    You can see the blog:
    here

    As you can see it works but its because i use some margin-top and display in the css. Its really bad.

    #sidebar
    {
    	display:block;
    	padding: 0 0 10px 0;
    	margin-left: 785px;
    	margin-top:-678px;
    	width: 190px;
    	}
    
    #sidebarleft
    {
    	display:inline-block;
    	padding: 0 0 10px 0;
    	margin-top:0px;
    	margin-left: -654px;
    	width: 190px;
    
    	}

    You could start by sorting out the validation errors in your theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display 2 sidebar align of both sides of the posts’ is closed to new replies.