I have come across various techniques for creating a simple fixed-width single-column layout using CSS. The method discussed here caught my attention due to its minimal code and compatibility with all the browsers I tested.
#container {
margin: 0 auto;
width: xxxpx;
text-align: left;
}
<body>
<div id="container">
...entire layout goes here...
</div>
</body>
The author mentioned receiving some criticism on this technique. As someone not well-versed in web development, I'm curious to hear the community's thoughts on this approach. Are there better or more universally compatible ways to achieve the same result?