#statDiv {
position: relative;
left: 0;
height: 10%;
width: 100%:
}
}
#gameCount {
text-align: center;
}
#player1Score {
text-align: left;
}
#score1Div {
float: left;
width: 33%;
height: 10%;
background-color: blue;
}
#countDiv {
float: left;
width: 33%;
height: 10%;
background-color: red;
}
#score2Div {
float: left;
width: 33%;
height: 10%;
background-color: green;
}
#player1Div {
float: left;
width: 50%;
height: 100%;
background-color: blue;
}
#player2Div {
float: left;
width: 50%;
height: 100%;
background-color: green;
}
#arenaDiv {
position: relative;
}
<!DOCTYPE html>
<html>
<head>
<title>practice</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="practice" />
<meta name="keywords" content="practice" />
<meta name="author" content=", 11/05/2019" />
</head>
<body>
<div id="statDiv">
<div id="score1Div">
<p id="player1Score">1</p>
</div>
<div id="countDiv">
<p id="gameCount">H</p>
</div>
<div id="score2Div">
<p id="player1Score">2</p>
</div>
</div>
<div id="arenaDiv">
<div id="player1Div">
<p id="gameCount">H</p>
</div>
<div id="player2Div">
<p id="player1Score">2</p>
</div>
</div>
</body>
</html>
I tried using float in the first time but it didn't work so now I tried using positions for the divs and I don't know what the problem is. My goal is to put to put the second main div(arenaDiv)under the first main div(statDiv) but it doesn't work because it just like combines all of them or basically the two divs overlap each other. What postion should I use for each of the divs in order to put the other one under the first one?