HTML & CSS Web Design
Html Css > Code Examples
Titled section line height margin padding
Titled section line height margin padding
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Titled Section Line Height Margin Padding</title>
<style type="text/css" media="screen">
div {
margin: 36px;
padding: 36px;
border: 1px solid orange;
font-size: small;
}
#divID {
line-height: 1.3em;
}
</style>
</head>
<body>
<div id="divID">
<h1>Love Sayings Love Quotes Love Proverbs</h1>
<p> I'm in the mood for love<br>
Simply because you're near me.<br>
Funny, but when you're near me<br>
I'm in the mood for love.<br>
Dorothy Fields
</p><br>
<p> She walks in beauty,<br>
Like the night of cloudless climes and starry skies;<br>
And all that's best of dark and bright<br>
Meet in her aspect and her eyes.<br>
Byron
</p>
</div>
</body>
</html>