My HTML file, I borrowed wordings from latecomer page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<link href="test.css" rel="stylesheet" type="text/css"
/>
</head>
<body>
<div class="mybox">
<h2>Lily Lee's Links</h2>
<ul>
<li>Hard Link</li>
<li>Normal Link</li>
<li>Easy Link</li>
</ul>
</div>
<div id="container">
<div class="normaltext">
<h2>So what is it actually?</h2>
<p>Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a
galley of type and scrambled it to make a type specimen book. It
has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was
popularised in the 1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of
Lorem Ipsum.</p>
<h2>The Real Stuff</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Nullam pede nibh, lacinia eget, rhoncus nec, vestibulum tincidunt,
tellus. Duis feugiat. Donec imperdiet massa et sem. Donec nisi.
Duis turpis mauris, vestibulum vitae, pulvinar porta, fermentum id,
quam. Praesent imperdiet dui a eros. Duis dapibus auctor erat.
Phasellus sed metus. Nam cursus. Praesent sed massa. Pellentesque
sit amet mi ac neque malesuada aliquam. Proin accumsan mi id nunc.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
neque, varius id, sodales sit amet, tempor ac, quam. Etiam velit.
Quisque lobortis elementum libero. Sed vel augue. Nullam blandit
blandit risus. Quisque rutrum semper mauris.</p>
</div>
<div class="secondtext">
<h2>And why use it?</h2>
<p>It is a long established fact that a reader will be
distracted by the readable content of a page when looking at its
layout. The point of using Lorem Ipsum is that it has a
more-or-less normal distribution of letters, as opposed to using
'Content here, content here', making it look like readable English.
Many desktop publishing packages and web page editors now use Lorem
Ipsum as their default model text, and a search for 'lorem ipsum'
will uncover many web sites still in their infancy. Various
versions have evolved over the years, sometimes by accident,
sometimes on purpose (injected humour and the
like).</p>
<h2>The Real Stuff...Again</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Nullam pede nibh, lacinia eget, rhoncus nec, vestibulum tincidunt,
tellus. Duis feugiat. Donec imperdiet massa et sem. Donec nisi.
Duis turpis mauris, vestibulum vitae, pulvinar porta, fermentum id,
quam. Praesent imperdiet dui a eros. Duis dapibus auctor erat.
Phasellus sed metus. Nam cursus. Praesent sed massa. Pellentesque
sit amet mi ac neque malesuada aliquam. Proin accumsan mi id nunc.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
neque, varius id, sodales sit amet, tempor ac, quam. Etiam velit.
Quisque lobortis elementum libero. Sed vel augue. Nullam blandit
blandit risus. Quisque rutrum semper mauris.</p>
</div>
</div>
</body>
</html>
My CSS page
div.mybox {
position: absolute;
top: 0px;
left: 0px;
}
div.normaltext {
display: block;
border: 1px solid black;
text-align: center;
padding-left: 100px;
padding-right: 100px;
}
div.secondtext {
display: block;
border: 1px solid black;
text-align: center;
}
#container {
display: block;
border: 1px solid black;
margin: 0 auto; /* align for good browsers
*/
/*text-align: left;*/ /* counter the body center */
width: 600px;
}
/*
div.container {
margin: 0 auto; /* align for good browsers
*/
text-align: left; /* counter the body center */
width: 100%;
}
*/
body {
text-align: center;
}