SOURCE:
Basic Page Layouts Using CSS by Jeff Siarto
<!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>
<title>Centered layout</title>
<style type="text/css">
#wrap
{
margin: 0 auto;
width: 800px;
background-color: Aqua;
border: 1px solid #646464;
border-style: solid;
}
</style>
</head>
<body>
<div id="wrap">
<p> The Wrapper is here. It does not show if you do not have any element inside</p>
</div>
</body>
</html>
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!