How do I center my webpage?
Something like this, notice the borders on both sides of the text?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Sepia!</title>
<link rel="stylesheet" href="mystyle.css">
<style type="text/css">
body {
padding-top: 14em;
padding-left: 30em;
text-align: center;
font-family: Arial ;
color: #414189;
background-color: #0f0f0f}
ul.navbar {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 1em;
left: 10em;
width: 9em }
h1 {
font-family: Arial }
ul.navbar li {
background: #0f0f0f;
padding: 0.4em;
}
ul.navbar a {
text-decoration: none }
a:link {
color: #0f0f0f}
a:visited {
color: #0f0f0f}
address {
margin-top: 1em;
padding-top: 1em }
</style>
</head>
<body>
<!-- Site navigation menu -->
<ul class="navbar">
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo5.png"
alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png"
alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png"
alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png"
alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png"
alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png"
alt="Button 1" /></a>
</ul>
<!-- Main content -->
<p>para 1
<p>para 2
<address>Date<br>
Sepia </address>
</body>
</html>
EDIT:
Tried it and it doesn't seem to be working, what did I do wrong? The text is centered but not the images.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Sepia!</title>
<link rel="stylesheet" href="mystyle.css">
<style type="text/css">
body {
padding-top: 14em;
padding-left: 20em;
font-family: Arial ;
color: #414189;
background-color: white}
wrap {
width: 900px;
margin: 0 auto;
background-color: #0f0f0f}
ul.navbar {
list-style-type: none;
padding: 0;
margin: 0;
position: Absolute;
top: 1em;
left: 1em;
width: 9em }
h1 {
font-family: Arial }
ul.navbar li {
background: #0f0f0f;
padding: 0.4em;
}
ul.navbar a {
text-decoration: none }
a:link {
color: #0f0f0f}
a:visited {
color: #0f0f0f}
address {
margin-top: 1em;
padding-top: 1em }
</style>
</head>
<body>
<div id="wrap">
<!-- Site navigation menu -->
<ul class="navbar">
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo5.png" alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png" alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png" alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png" alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png" alt="Button 1" /></a>
<li><img src="C:\Users\Drew French\Pictures\Style\SepiaWeb\button_demo4.png" alt="Button 1" /></a>
</ul>
<!-- Main content -->
<p>para 1
<p>para 2
<address>Date<br>
Sepia </address>
</div>
</body>
</html>