WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nick_byrd
    Member
    Posted 1 year 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....)
    </div>

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

    http://www.byrdnick.com

    I am very open to suggestions

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    revise:
    http://www.w3schools.com/Css/css_positioning.asp

    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%;
      ...
    }

    http://www.w3schools.com/css/default.asp

  3. nick_byrd
    Member
    Posted 1 year 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