[resolved] Margin-left in sidebar is moving the footer (4 posts)

  1. Startingdays
    Posted 3 years ago #

    Hello everyone. I have a little problem with my layout. After I gave my sidebar margin-left: 10px, my footer moved suddenly to the right. When I remove the margin, it goes back to normal.

    link to the site: http://www.startingdays.com/
    The index.php file

    <?php get_header(); ?>
    <div id="page">
    <div id="contentwrapper">
    <div id="content" role="main">
    <?php include('featured-post.php'); ?>
    <?php query_posts($query_string.'&cat=-3&&order=DESC');
    while (have_posts()) : the_post(); ?>
    <div class="entry" id="post-<?php the_ID(); ?>">
    <p class="datum"><span class="content">Author: <?php the_author() ?><br />  Comments: <?php comments_popup_link('No Notes', '1 Note', '% Notes'); ?><br />Tag: <?php the_category(', '); ?>
    <br />Date: <?php the_time('jS, M, Y') ?></span></p>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    <div style="clear:both;"></div>
    <div class="entry-content">
    <?php the_content(''); ?>
    <?php endwhile; ?>
    <div class="navigation">
    <?php if(function_exists('wp_paginate')) {
    } ?>  
    <div class="sidebarleft"><?php get_sidebar(); ?></div>
    <div style="float: center; clear: both; width: 100%;"><?php get_footer(); ?></div>

    Even if I put the get_header before the wrapper end, I get the same result.
    I hope someone can help me.
    Thanks in advance

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Specific CSS queries may have greater relevance in forums that specialise CSS support.

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Looks like you have some layout problems with the structure of the site and where the footer is located. But before trying to sort that out, you'll need to clean up a bunch of mark-up errors:


  4. Startingdays
    Posted 3 years ago #

    thank you for helping me. I could fix the problem this morning. A div was too much in my sidebar. Now its working XD

Topic Closed

This topic has been closed to new replies.

About this Topic