#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    3
    Rep Power
    0

    Page Border help


    Hi,

    I am designing a website and I want the page to have a margin so that it sits in the centre of the screen. Like this example:
    larissameek.com

    Can anybody help me in how I do this please?

    Thanks

    Alex
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    862
    Rep Power
    275
    just set a background-color for your BODY and setup a wrapper DIV to enclose everything else that you want to display and give it either a specific width [px] or an elastic width [%] and to center this wrapper DIV give it a margin CSS of margin:0 auto; (or margin:20px auto; to give the top/bottom a 20px margin).

IMN logo majestic logo threadwatch logo seochat tools logo