I have to recreate the image in the end of this question using positioning. I am not allowed to edit the HTML in any way. I don't want to know the solution but rather what am I missing or overlooking. I'm positive this has to be done with position: absolute but I'm not sure how to target each box individually.
This is the code:
body {
font-family: 'Mansalva', cursive;
position: absolute;
}
div {
border: 3px solid black;
text-align: center;
position: relative;
height: 100px;
width: 200px;
background-color: blue;
}
p {
border: 2px solid black;
border-top-left-radius: 100px;
border-top-right-radius: 100px;
border-bottom: 0px;
background-color: black;
color: white;
font-size: 35px;
height: 100px;
width: 200px;
}
<body>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div><p>Your Name</p></div>
</body>
