WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Startingdays
    Member
    Posted 1 year 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(); ?>
    <!--content-->
    <div id="page">
    <!--left-col-->
    <div id="contentwrapper">
    <div id="content" role="main">
    <?php include('featured-post.php'); ?>
    <!--post-->
    <?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(''); ?>
    </div>
    </div>
    <!--post-end-->
    
    <?php endwhile; ?>
    <div class="navigation">
    <?php if(function_exists('wp_paginate')) {
        wp_paginate();
    } ?>  
    
    </div><!--left-col-end--> 
    
    <div class="sidebarleft"><?php get_sidebar(); ?></div>
    
    </div><!--content-end-->
    </div><!--wrapper-end-->
    
    <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
    Forum Moderator
    Posted 1 year ago #

    Specific CSS queries may have greater relevance in forums that specialise CSS support.
    http://csscreator.com/forum

  3. WPyogi
    Volunteer Moderator
    Posted 1 year 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:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.startingdays.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

  4. Startingdays
    Member
    Posted 1 year 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