programming-examples/css/Centered body.html

25 lines
648 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=ISO-8859-1" />
<title>Centered Body</title>
<style type="text/css">
body {
background: pink;
border: 1px solid blue;
padding: 25px;
margin-left: auto;
margin-right: auto;
width: 25em;
}
</style>
</head>
<body>
<h1>Love Sayings</h1>
<p>Outside are the storms and strangers:<br>
We - Oh, close, safe and warm sleep I and she, I and she . . .<br><br>
Robert Browning</p>
</body>
</html>