programming-examples/css/Code tag margin padding text-align.html
2019-11-15 12:59:38 +01:00

38 lines
744 B
HTML

<!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" subLang="en">
<head>
<title>Code Tag Margin Padding Text-align</title>
<style type='text/css'>
code {
margin: 4px 0;
padding: 12px;
text-align: left;
display: block;
overflow: auto;
font: 500 1em/1.5em verdana, 'courier new';
background: pink;
border-left: 2px solid #ff88f9;
}
</style>
<title>Marketplace</title>
</head>
<body>
<div>
<h1>Header</h1>
<p><code>
code-sample { <br />
font-weight: normal;<br />
j++;
</code></p>
</div>
</body>
</html>