programming-examples/css/Aligned and Offset Static Table.html
2019-11-15 12:59:38 +01:00

38 lines
916 B
HTML

<!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>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Aligned and Offset Static Table</title>
<style type="text/css" title="text/css">
.parent {
width: 800px;
height: 800px;
background: blue;
}
* .wrap {
width: auto;
margin-left: 0;
margin-right: auto;
background: pink;
}
</style>
</head>
<body>
<div class="parent">
<table class="wrap"><tr><td> I love thee, I love but thee<br>
With a love that shall not die<br>
Till the sun grows cold<br>
And the stars grow old.<br><br>
Willam Shakespeare </td></tr></table>
</div>
</body>
</html>