November 11, 201015 yr Hi Everyone I am trying to centralise my wrapper on a web page I have coded css as follows: body {margin: 0; padding: 0; } #wrapper {
November 16, 201015 yr Hi Everyone I am trying to centralise my wrapper on a web page I have coded css as follows: body {margin: 0; padding: 0; } #wrapper { What comes after the wrapper?? Firstly, you need to add a css reset to any style sheet (search Google for Eric Meyer's css reset) Secondly, all you need to do to centre the wrapper is this: #wrapper { width: 960px; //or whatever you want margin: 0 auto; }
Create an account or sign in to comment