In my HTML document, I want to enforce fixed layout (250px width).
Would you please help me with a CSS snippet that can be used within a body tag so that the html content will be wrapped after a fixed width ?
For example,
<body style="width: 250px">
This snippet is working in Firefox perfectly, but it is not working in Internet Explorer. Is there any universal technique that will enforce the fixed width for all browsers ?
It won't work in IE if you have it in Quirks Mode. Make sure you have a <!DOCTYPE>
and it should work fine.