This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

326 points
185bfacbfdfcfb96f42a0ceb404cdd07?s=140&d=retro
Submitted by
Sully Alataar
about 4 years ago

Error: It looks like your <div> isn't 100px wide; it appears to be 472px wide.

I'm using Chrome on an Ubuntu machine, and the code in the stylesheet is as follows:

div {
background-color: #cc0000;
height: 100px;
width; 100px;
}

I've tried resetting the screen several times, without any change.

Thanks in advance!


2 votes

permalink

Your width property is misspelled; it should have a colon ":" after the property, instead of the current semicolon. If you just change your code to the following, it will work.

div {
background-color: #cc0000;
height: 100px;
width: 100px;
}

472 points
E0dff96e29b5d6510907be77dc674c2b?s=140&d=retro
Submitted by
Alexander
about 4 years ago