[resolved] Wrapper with margin: 0 Auto; not entering site (3 posts)

  1. nick_byrd
    Posted 3 years ago #

    Greetings kind wordpress people. I cannot get my site to center. I tried using an html wrapper and styling it with the ol' "0 auto" margin, but it does not seem to center. And none of the CSS edits suggested in the half dozen other forums are helping me. My html and css looks like this:

    <!-- Wrapper -->
    <div id="wrapper" class="wrapper">
    (.....rest of site....)

    #wrapper {
    width: 960px;
    margin: 0 auto;
    background: url(http://www.byrdnick.com/wp-content/uploads/2012/09/seamlesstexture29_1200.png);


    I am very open to suggestions

  2. Michael
    Forum Moderator
    Posted 3 years ago #


    Absolute Positioning
    An absolute position element is positioned relative to the first parent element that has a position other than static. If no such element is found, the containing block is <html>:

    this effects your #Layer-1 position.

    also, right now, your style for #wrapper in psd2css.css is missing . or #:

    wrapper {
      width: 960px;
      height: 100%;


  3. nick_byrd
    Posted 3 years ago #

    Alchmyth: you rock! Thanks for helping out a newbie! And what a timely response!

Topic Closed

This topic has been closed to new replies.

About this Topic