The top picture shows what it turns out for me, and the bottom one shows how it is supposed to be. So what I need help with is to properly place the white "box".
Here the image: https://i.sstatic.net/82W4l.jpg
My Code
div {
border: solid 1px black;
}
#div1 {
background-color: Silver;
height: 300px;
width: 100px;
margin-bottom: 5px;
}
.ruta {
background-color: white;
height: 200px;
width: 400px;
margin-left: 120px;
}
#div2 {
background-color: Black;
width: 402px;
height: 10px;
align-top:5px;
}
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="stylesheet.css">
<head>
<title>Page Title</title>
</head>
<body>
<div id="div1"></div>
<div class="ruta"></div>
<div id="div2"></div>
</body>
</html>
And here is the original code which we are supposed to edit. The blank spaces is what should be filled in.
________
{
border: solid 1px black;
}
_______
{
background-color: Silver;
height: 300px;
width: 100px;
________________________
}
_______
{
background-color: White;
height: 200px;
width: 400px;
margin-left: 120px;
}
_______
{ background-color: Black;
width: 402px;
height: 10px;
margin-top: 5px;
________________________
}
<body>
<div id="div1"></div>
<div class="ruta"></div>
<div id="div2"></div>
</body>