I want the content of a web page to be centered and max width of, say 900px.
From my research and testing, it looks like this is the way to do it, but I wanted to confirm:
<body style="max-width:900px; text-align:center;margin-left:auto ;margin-right:auto">
Obviously, you’d put the style in the CSS.
And I figure anybody with a big screen is going to have a fairly new browser.
CSS:
HTML: