programming-examples/css/Centered Shrinkwrapped Table.html

36 lines
815 B
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!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>Centered Shrinkwrapped Table</title>
<style type="text/css" title="text/css">
.parent {
width: 800px;
height: 650px;
background: pink;
}
* .c-wrap {
width: auto;
margin-left: auto;
margin-right: auto;
background: green;
}
</style>
</head>
<body>
<div class="parent">
<table class="c-wrap"><tr><td>
Clarity of mind means clarity of passion, too;<br>
this is why a great and clear mind loves ardently<br>
and sees distinctly what it loves.<br><br>
Blaise Pascal</td></tr></table>
</div>
</body>
</html>