h1 border-bottom: 1px solid steelblue;
<!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:lang='en'>
<head>
<title>text-align</title>
<style type='text/css'>
body {
font: 12px sans-serif;
}
h1 {
font: 14px sans-serif;
margin: 0;
color: darkslateblue;
border-bottom: 1px solid steelblue;
}
p {
color: darkslateblue;
padding: 10px;
}
p#left {
text-align: left;
}
p#center {
text-align: center;
}
p#right {
text-align: right;
}
p#justify {
text-align: justify;
}
</style>
</head>
<body>
<h1>Mitch Hedberg Quotes</h1>
<p id='left'>
"Fettuccine alfredo is macaroni and cheese for adults."
</p>
<p id='right'>
"Rice is great if you're really hungry and want to eat two
thousand of something."
</p>
<p id='center'>
"I'm lactose intolerant, so I eat my cereal with a fork."
</p>
<p id='justify'>
"this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. "
</p>
</body>
</html>
Related examples in the same category
1. | h2 border-bottom: 2px dashed black; | | |
2. | h2 border-top: 10px solid black; | | |
3. | h2 border-bottom-width: 2px; | | |
4. | h2 border-bottom-style: dashed; | | |
5. | h2 border-bottom-color: black; | | |
6. | h2 border-top-width: 10px; | | |
7. | h2 border-top-style: solid; | | |
8. | h2 border-top-color: black; | | |
9. | h2 border: 3px dotted #33333; | | |
10. | h2 border-bottom: 10px solid #666; | | |
11. | h1 border-bottom: 1px solid rgb(200, 200, 200); | | |
12. | h2 border-bottom: 1px solid rgb(200, 200, 200); | | |
13. | h3 border-bottom: 1px solid rgb(200, 200, 200); | | |
14. | h4 border-bottom: 1px solid rgb(200, 200, 200); | | |
15. | h5 border-bottom: 1px solid rgb(200, 200, 200); | | |
16. | h6 border-bottom: 1px solid rgb(200, 200, 200); | | |
17. | h1 border-bottom: 1px solid #aaaaaa; | | |
18. | h1 font-size: 2.1em;background: pink;padding: 1em;border: thin solid black; | | |
19. | h1 border: thin solid rgb(0, 0, 0); | | |
20. | H1 border-bottom: 1px solid #CBC9C7; | | |
21. | h4 border-bottom: 1px solid green; | | |
22. | h2 color: orange; border: 4px solid orange; | | |