* 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?
2014-11-10 09:45 (edited 2014-11-10 09:45 by Irve ) · (1)
* 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
2014-11-10 10:33 (edited 2014-11-10 10:37 by Graham ) · (1)
* Irve * Graham Yes, I don't want to centre align every thhng. Thanks Graham.
2014-11-11 02:03 · (0)

Online: Guests: 1