Sally said:
You mean attribute.
for the body element to fix the width of the page?
No. The body element *is* the page.
You would have to enclose your content in, say, a div element and set the
width of that, but you would not use the width attribute, you would use some
CSS.
<head>
<style type="text/css">
..content {width: 600px;}
</style>
</head>
<body>
<div class="content">
your content goes here.
And how do you center a page if it is narrower than the screen width?
by specifying margin: auto
..content {width: 600px; margin: auto;}
However this does not work in IE6 in quirks mode and prior versions of IE,
5.5 or below, so you need to also specify
body {text-align: center}
to utilize a bug in IE where it this not only aligns the text but also the
block level elements like divs. But then your text is centred so you also
need to cancel thus in the div by specifying text-align: left;
body {text-align: center}
..content {width: 600px; margin: auto; text-align: left;}
However, why do you want to fix the size of you page anyway? It's best to
let the page flow to the size of your users canvas:
http://allmyfaqs.com/faq.pl?AnySizeDesign