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

CSS: An Overview Forum

View Course » View Exercise

214 points
F1b63ab84c24f9319f82c09850226833?s=140&d=retro
Submitted by
Dan Cliff
over 3 years ago

div not showing

well it said i passed but.. nothing on the preview has changed im not sure what to do because i dont want to carry on when i says i have passed when i havent here is my code:
div {
background-color: #cc0000
height: 100px;
width: 100px;
}
also it shows these messages
Expected end of value but found 'height'
Expected RBRACEvat line 5, col 7.


1 vote

permalink

/*Add your CSS below!*/
div {
    background-color: #cc0000;
    height: 100px;
    width: 100px;
}

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago

1 Comment

F1b63ab84c24f9319f82c09850226833?s=140&d=retro Dan Cliff over 2 years ago

sorry for the late response my pc broke thanks for the help!^^


0 votes

permalink

Make sure to put a semi-colon on the end of each value. It looks like one is missing after "background-color:#cc0000".

596 points
52a2560c8c1ccc5ac400064c_914770763
Submitted by
Tyler
over 3 years ago

2 Comments

543fc82f631fe988640020d7_382532424 Tobias Páez over 2 years ago

try the next

F1b63ab84c24f9319f82c09850226833?s=140&d=retro Dan Cliff over 2 years ago

sorry for the late response my pc broke thanks for the help!^^