+ 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>
2 Antworten
+ 11
You wrote ==> 50 px
And it's wrong, correct syntax ===> 50px
+ 1
Don't add a space between the number "50" and "px".
ex: 50px