WordPress.org

Forums

[resolved] Footer isn't centered anymore (7 posts)

  1. Mariokluser
    Member
    Posted 6 years ago #

    Hello profs out there,

    My footer isn't centered anymore. It's not just the grafik or the tekst, it's just the whole footer.

    The only thing I did was putting the code from http://www.statcounter.com for the </body>-tag. This is it. And I don't know if this is the reason. When I remove it the footer isn't centered either.

    Please help. I'm sure it's a peace of cake for some of you.

    Thanks!

  2. @mercime
    Volunteer Moderator
    Posted 6 years ago #

    The reason is you are using tables to set up your layout. The footer table is separate from the top content and set to 100% with text aligned center. The tables for site name, and post content and sidebars are set to 790px width and left aligned. Note related but also noted that your table for your main navigation is set to 100% width with left-aligned links.

    So you either make the footer table's width 790px so that it will "align center" for your site.

  3. Mariokluser
    Member
    Posted 6 years ago #

    Wow!

    To be certain we talk about the same website.
    My blog is http://www.mario-live.com/blog and I just use a theme. I did not do the design.

  4. Mariokluser
    Member
    Posted 6 years ago #

    I use the counter code from statcounter.com to measure my visitors etc. Maybe you thought that the site with the problem is statcounter.com

    Sorry if I confused you and thank you very much for your fast reaction.

  5. @mercime
    Volunteer Moderator
    Posted 6 years ago #

    Hahaha. I thought you copied the layout from statcounter.com :-)
    OK, find the following in your theme's style.css

    #footercontent{
    width:850px;
    float:left;
    margin:20px 0 0 0;
    padding-bottom:40px;
    }

    Replace with:

    #footercontent{
    width:850px;
    clear:both;
    margin:20px auto 0 auto;
    padding-bottom:40px;
    }
  6. Mariokluser
    Member
    Posted 6 years ago #

    Wow, you are great!

    It works! How did you no that?
    You are unbelievable awesome!

    I won't forget this.

  7. Mariokluser
    Member
    Posted 6 years ago #

    @mercime

    Do you have by any chance also a fast solution for my problem in this topic: http://wordpress.org/support/topic/208641?replies=9?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.