Forum Moderators: not2easy
p.illustration {margin: 1em auto; text-align: center;} div.outer {width: 978px; text-align: center; background-color: black; color: white; margin: 1em auto;}
p.illustration {margin: 1em auto; text-align: center;}
p.text {padding: .5em 1em; text-align: left;}
...
<div class = "outer">
<p class = "illustration">
<img src blahblah></p>
<p class = "text">
Quousque tandem abutere, Catilina, patientia nostra?</p>
<p class = "illustration">
<img src blahblah></p>
<p class = "text">
Quousque tandem abutere, Catilina, patientia nostra?</p>
<p class = "illustration">
<img src blahblah></p>
<p class = "text">
Quousque tandem abutere, Catilina, patientia nostra?</p>
<p class = "illustration">
<img src blahblah></p>
<p class = "text">
Quousque tandem abutere, Catilina, patientia nostra?</p>
<p class = "illustration">
<img src blahblah></p>
<p class = "text">
Quousque tandem abutere, Catilina, patientia nostra?</p>
</div>
{padding: .5em 1em;} <h1 style = "font-weight: bold"> <!DOCTYPE HTML>
<html>
<head>
<style type = "text/css">
html {background-color: #CCF;}
</style>
<body>
<h1>Here's My Header!</h1>
<p>This is a paragraph: Quousque tandem abutere, Catilina, et cetera</p>
</body>
</html>
element {property: value;}
element.class {property: value;}
.class {property: value;}
td {font-weight: bold;}
td.super {font-size: 200%;}
.extra {color: red;}
p.jabberwocky {font-family: "Comic Sans MS";}
...
<p class = "jabberwocky">'Twas brillig and the slithy toves</p> BUT i add h1 or p BEFORE <img src etc> which means i can reference that image within CSS
img {padding: 1em;{ h1 img {padding: 1em; background-color: black;}
p img {border: 2px solid black; p img
p img.special
p.special img
.special img
div.blackbox {background-color: black; color: white; padding: 1em; text-align: center;}
...
<div class = "blackbox">
When in the course of human events it becomes...
[i]Whoops![/i] Wrong text.
</div>
div.maintext p:first-child {margin-top: 0;} <!DOCTYPE HTML>
<html>
<meta charset = "UTF-8">
<head>
<title>Sample Page</title>
<style>
div.display {width: 1000px; background-color: black; color: white; text-align: center;}
div.display img {padding: 1em auto 0;}
div.display p {margin: 1em auto 2em; text-align: left; line-height: 1.2;}
</style>
</head>
<body>
<div class = "display">
<img src = blahblah>
<p>Text about the image here.</p>
<img src = blahblah>
<p>Text about this image here.</p>
et cetera
</div>
</body>
</html>
div.display {background-color: #666; etcetera}
div.display p {background-color: black; padding: .5em;}