Armin
Armin

Reputation: 21

Can't see background color css

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?

http://jsfiddle.net/5qd5bL7o/

<div class="codeContainer" id="htmlContainer">
ssd
</div>

<style> .codeContainer { background-color: blue; height: 100%; width: 50%; 
float: left; } </style>

Upvotes: 1

Views: 198

Answers (1)

GolezTrol
GolezTrol

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

Related Questions