Forum Moderators: not2easy
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Travel</title>
<style type="text/css">
<!--
h1{text-align:center; font-size:24pt}
h2 {text-align:center; font-size:16pt}
img.center{display:block; margin-left:auto; margin-right:auto}
.clearboth{clear:both}
-->
</style>
</head>
<body>
<div>
<h1>Travel</h1>
<hr />
</div>
<h2>This Page is Currently Under Construction</h2>
<img class="center" src="construction.gif" height="200" width="300" alt="under construction" />
</body>
</html>
Try changing to:
img.center{display:block; margin-left:auto; margin-right:auto; text-align: center;} Alternatively, as the entire page is centered, just add:
BODY { text-align: center; }