I'm trying new styles but when it comes to creating them in css it does not show me the expected result. Apparently I see the code correctly but I do not believe the 3 black boxes that this code should create.
HTML:
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="estilos.css">
</head>
<div class="container">
<div class="box">
</div>
<div class="box">
</div>
<div class="box">
</div>
</div>
STYLES:
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.container {
position: relative;
width: 1200px;
height: 300px;
margin: 240px auto;
}
.container .box{
position: relative;
width: calc(400px-30px);
height: calc(300px-30px);
background: #000;
float: left;
margin: 15px;
box-sizing: border-box;
overflow: hidden;
border-radius: 10px;
}
I have checked that you recognize the stylesheet correctly, but the styles of the "container" daughter class called "box" do not recognize the styles. If you need more information ask for it, please.