October 5th, 2013, 05:53 PM
Page Border help
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:
Can anybody help me in how I do this please?
October 5th, 2013, 06:03 PM
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).