Irve
Hello,
Please i would like my site to be displayed at the centre of the screen instead of left when viewed with a desktop/laptop. What do i need to put in my css to effect this please?
Graham
Irve I presume you do not want to center align everything or just turn on the javascript wrapper (that will limit the width to 400 px and a strip down the center)
so something like
body
{
max-width:800px;
margin:0 auto;
}
Copy code
will make the site 800px wide and in the center
The "auto" is what centers the view on the screen
as it tells the browser to split up the available space evenly between the left and right side of the body element
Irve
Graham Yes, I don't want to centre align every thhng. Thanks Graham.