How do I adjust the gap between the body and the sidebar? (5 posts)

  1. benoit.picard
    Posted 3 years ago #

    Ever since I made a few changes in my sidebar, the sidebar shifted about 5 pixels to the left. There is no space between the website body and the sidebar anymore. Please visit the website to view the problem that I have:


    I believe the problem appeared when I changed my header image.

    Here is my stylesheet:

    [ 1,611 lines of code moderated. That's just too much, for many lines of code please pastebin.com instead. ]

  2. Justin Greer
    Bearded Moderator
    Posted 3 years ago #

    Fix your open tags first and see if that fixes it!

  3. benoit.picard
    Posted 3 years ago #

    I'm pretty new to CSS. What are open tags?
    Thanks for the quick reply!

  4. benoit.picard
    Posted 3 years ago #

    This is my sidebar_home.php:

    <?php if(!is_home()) { ?>
    <div class="video">

    <h3>Shopping Cart</h3>

    <div id="cart_widget"></div>
    Empty Cart  
    View Cart / Checkout

    <p style="margin-top:10px;">» Read our shipping and return policies</p>


    <?php } ?>

    <div class="media">

    <img src="http://www.laguitare.ca/wp-content/uploads/2012/11/face.png">


    <div class="video">

    <h3>Featured video: Elixir Strings</h3>
    <object width="300" height="200"><span style="background-color: #fdeee0;"><iframe width="300" title="YouTube video player" src="http://www.youtube.com/embed/TtGW31FFTg8?rel=0&autoplay=1;showinfo=0;controls=0" height="168" frameborder="0"></iframe></object>


    <div class="video">

    <h3>Acoustic Guitars</h3>

    <img src="http://www.laguitare.ca/wp-content/uploads/2012/04/acoustic.png" width="300" height="199"/>

    [ View More ]


  5. WPyogi
    Forum Moderator
    Posted 3 years ago #

    That generally means coding errors, which you can find by validating your pages:


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.