Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS div Shifting Right

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34024
    jwired14
    Member

    Can not figure out why div for the navigation bar at the top is shifted to the right and not center.
    Here is the link to the page:
    http://johnstatonjr.com/New%20folder/index.html
    Also the code:

    .navi {
    background-color:#000;
    padding:0;
    min-width:100%
    }
    .inside {
    width:800px;
    margin:0 auto;
    padding:0 auto;
    min-width:800;
    padding-top:10px;
    padding-bottom:10px;

    }

    #85396
    wolfcry911
    Participant

    lists have a default indent – either padding (Gecko, Webkit) or margin (IE) is used to set it. Simply zero the margin and padding for the ul

    .navi ul {
    margin: 0;
    padding: 0;
    }
    #85397
    jwired14
    Member

    So simple. Thanks man!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.