There's a problem with my box dimensions | Sololearn: Learn to code for FREE!
+ 1

There's a problem with my box dimensions

my dimensions aren't showing up, heres the code: #container { width: 200px; height: 200px; background: green; position: relative; } #box { width: 50 px; height: 50 px; background: red; position: absolute; } I used an external file. heres the html: <!DOCTYPE HTML> <html> <head> <script src="Learn.js"></script> <link rel="stylesheet" type="text/css" href="Learn.css"/> </head> <body> <div id="container"> <div id="box"> </div> </div> </body> </html>

29th Jun 2017, 8:00 PM
Joshua
Joshua - avatar
2 Answers
+ 11
You wrote ==> 50 px And it's wrong, correct syntax ===> 50px
29th Jun 2017, 8:02 PM
Maz
Maz - avatar
+ 1
Don't add a space between the number "50" and "px". ex: 50px
29th Jun 2017, 8:15 PM
Tee Jay
Tee Jay - avatar