Perseus
Registered
I am having trouble getting my <div> for the main content of the page to have my specified color. Whenever I start adding the <ul>, the background color for the <div> disappears. I am trying to avoid using paragraph tags. But then I decided to add them in with the <li>s. So here is my code so far:
(im just including the content section)
<div id="content" class="copy">
<ul>
<li><p>This is a sample sentence in order to test out the background color.</p></li>
</ul>
</div>
and my CSS for this section is:
#content {background: #F7F0E1; width: 579px; position: absolute; left: 32px; top: 122px; padding: 0px; margin: 0px;}
.copy {width: 579px;}
#content ul {list-style: none; padding: 0px; margin: 0px; position: absolute; left: 10px; top: 50px;}
#content li {list-style: none; font: 11.5px/1.0 Tahoma, Verdana, serif; color: #4c4c4c; text-align: left;}
You can see I made the background color for <div id="content"> #F7F0E1.
How can I create a solid background color for the div without having to greate background colors and padding for the ul in order to have the background color? I have tried "background-color" instead of "background" and still nothing! What can I do? Thanks!
(im just including the content section)
<div id="content" class="copy">
<ul>
<li><p>This is a sample sentence in order to test out the background color.</p></li>
</ul>
</div>
and my CSS for this section is:
#content {background: #F7F0E1; width: 579px; position: absolute; left: 32px; top: 122px; padding: 0px; margin: 0px;}
.copy {width: 579px;}
#content ul {list-style: none; padding: 0px; margin: 0px; position: absolute; left: 10px; top: 50px;}
#content li {list-style: none; font: 11.5px/1.0 Tahoma, Verdana, serif; color: #4c4c4c; text-align: left;}
You can see I made the background color for <div id="content"> #F7F0E1.
How can I create a solid background color for the div without having to greate background colors and padding for the ul in order to have the background color? I have tried "background-color" instead of "background" and still nothing! What can I do? Thanks!