Just starting out in web development and I'm eager to create my first webpage. I'd like to have three boxes neatly placed within my wrapper, something similar to this sketch: https://ibb.co/xGDCv2f
The three boxes I want to include are "Registrer Pant", "Nexus Fordele", and "Samlet Donation". However, I'm a bit unsure about how to go about it.
Here's a snippet of my HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Registrer Pant</title>
<link rel="stylesheet" type="text/css" href="Forside.css"/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div class="header">
<h1>Good morning, Mathias</h1>
</div>
<div id="wrapper">
</div>
<br/>
<br/>
<br/>
<div id="box1" class="Pant">
Registrer Pant
</div>
<br/>
<br/>
<br/>
<div id="box2" class="Nexus">
Nexus advantages
</div>
<br/>
<br/>
<div id="box3" class="Samlet">
Total donation
</div>
</body>
</html>
Here's a glimpse of my CSS:
.header {
padding: 40px;
text-align: center;
background: #4968aa;
color: white;
}
.header h1 {
font-size: 40px;
}
#wrapper {
width: 1260px;
height: 500px;
border: 2px solid black;
}
.Pant {
background-color: #BCBCBA;
width: 800px;
height: 300px;
margin: 0 auto;
text-align: center;
vertical-align: middle;
line-height: 300px;
font-size: 100px;
}
#box2 {
background-color: lime;
width: 200px;
height: 100px;
margin: 0 auto;
text-align: center;
vertical-align: middle;
line-height: 100px;
}
#box3 {
background-color: dodgerblue;
width: 200px;
height: 100px;
margin: 0 auto;
text-align: center;
vertical-align: middle;
line-height: 100px;
}
Any help or guidance is greatly appreciated. Thank you!