Forum Moderators: open
<html>
<head>
<title>Title</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="content_box">
<span class="right_bar">
<h2>Section Title</h2>
Content Content Content Content Content Content Content Content Content Content Content Content Content .<br />
<br />
</span>
content
</div>
</body>
</html>
<span class="right_bar">
<h2>Section Title</h2>
Content Content Content Content Content Content Content Content Content Content Content Content Content .<br />
<br />
</span> The <span> is an inline element. You cannot wrap a block level element, the <h2> inside the <span> element. Maybe change that to a <div>? Give the content a proper wrapper such as <p> or other structural element.
<div class="right_bar">
<h2>Section Title</h2>
<p>Content Content Content Content Content Content Content Content Content Content Content Content Content.</p>
</div>
¦ ¦Section Title ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
¦ ¦ ¦
Is it possible to use a div but only have it use up 250px on the right side of the page?
Thanks again for all your help!
Wes
Is it possible to use a div but only have it use up 250px on the right side of the page?
I'm going to let someone with a little more experience answer that one.
Yes, you can position the div to the right and use up 250px of horizontal space. You can either position it absolutely or relatively. You can also do some things with floats but your surrounding structure will determine how you proceed.