Forum Moderators: not2easy
div.container {width: 974px; margin: 0 auto; padding: 0;} div.container p {color, justification, padding, blahblah} p.caption {color, etcetera, as above} BUT surely now i have to CENTER the CONTAINER so that IT sits in the center of the page.
to "justify" ? the text so it doesn't sit right at the left and right side of the black background.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML> <!doctype html>
<html>
<head>
<title>blahblah</title>
</head>
<body>
</body>
</html>
body {background-color: #cacaca;}
div.container {width: 974px; margin: 0 auto; text-align: center;}
p.blocktext {background-color: black; color: white; padding: .5em; text-align: justify;}
<div class = "container">
<img blahblah>
<p class = "blocktext">blahblah</p>
<img blahblah>
<img blahblah>
<p class = "blocktext">blahblah</p>
</div>
28 characters longer than my version