programming-examples/css/Div display table-cell.html

31 lines
977 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' xml:subLang='en'>
<head>
<title>Table Display in XHTML</title>
<style type="text/css">
html {
display: table;
border-spacing: 4px;
}
body {
display: table-row;
}
div {
display: table-cell;
padding: 4px;
border: thin solid pink;
}
</style>
</head>
<body>
<div>There's a lot to be said for self-delusionment<br>
when it comes to matters of the heart.<br><br>
Diane Frolov and Andrew Schneider </div>
<div>If love is great, and there are no greater things,<br>
then what I feel for you must be the greatest. </div>
</body>
</html>