I'm new at web design, I want to get ride of an annoying space between two <div>
with CSS:
Annoying space between (in the red circle)
I'm using this code:
HTML:
<html>
<head>
<link rel="stylesheet" href="../css/index.css">
<title> FalquOS: Index </title>
</head>
<body>
<div id="Section1">
<p> Section 01 </p>
</div>
<div id="Section2">
<p> Section 02 </p>
</div>
<div id="Section3">
<p> Section 03 </p>
</div>
<script src="../js/index.js"></script>
</body>
And CSS:
#Section1 {
width: 100%;
height: 500px;
background: #ff7f29;
border-radius: 10px 10px 0px 0px;
}
#Section2 {
width: 100%;
height: 500px;
background: #f3dc4f;
}
#Section3 {
width: 100%;
height: 500px;
background: #f34f4f;
border-radius: 0px 0px 10px 10px;
}
p {
text-align: center;
font-size: 25px;
color: white;
position: relative;
top: 200px;
font-family: monospace;
}
I've been trying things that may help like margin but that doesn't work :(