34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
<?xml version="1.0" ?>
|
|
<!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" subLang="en" xml:subLang="en">
|
|
|
|
<head>
|
|
<title>Div Tag Text-align Left Right Center Justify</title>
|
|
<style type='text/css'>
|
|
body {
|
|
color:blue;
|
|
background-color:pink;
|
|
font-family:arial, sans-serif;
|
|
font-size:16px;}
|
|
|
|
div {width:800px;margin:25px;}
|
|
|
|
.leftAlign {text-align:left;}
|
|
.rightAlign {text-align:right;}
|
|
.center {text-align:center;}
|
|
.justify {text-align:justify;}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Div Tag Text-align Left Right Center Justify</h1>
|
|
<div class="leftAlign">In love of home, the love of country has its rise. Charles Dickens</div>
|
|
<div class="rightAlign">Treasure the love you receive above all. It will survive long after your good health has vanished. Og Mandino</div>
|
|
<div class="center">All mankind love a lover. Ralph Waldo Emerson</div>
|
|
<div class="justify">Love is all we have, the only way that each can help the other. Euripides</div>
|
|
|
|
</body>
|
|
</html>
|