Reputation: 21
The class called: codeContainer the background-color isn't being displayed. I think it's underneath the menu bar. However, how can I adjust the background-color or positioning so it's displayed?
<div class="codeContainer" id="htmlContainer">
ssd
</div>
<style> .codeContainer { background-color: blue; height: 100%; width: 50%;
float: left; } </style>
Upvotes: 1
Views: 198
Reputation: 116110
The problem is here:
<!-- to clear the floats -->
This is an HTML comment, making your CSS invalid. CSS comments are like this:
/* to clear the floats */
This is not the only occurrence of incorrect comments in your CSS, you should fix them all.
Upvotes: 3