Why can I see this unwanted left padding beetween the green strip and first letters of ‘‘Learn’’ and ‘‘new’’? (and I can’t see it between strip and button which are in the same div with the text) ?
Here is HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colmar Academy</title>
<link rel="stylesheet" type="text/css" href="./resources/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,,900&display=swap" rel="stylesheet"/>
</head>
<body>
<div class="wrapper">
<div class="header">
<img class="hearer-logo" src="./resources/images/ic-logo.svg">
<p class="brand"><b>COLMAR</b>ACADEMY</p>
<nav class="header-list">
<span><a href="#">On campus</a></span>
<span><a href="#">Online</a></span>
<span><a href="#">For companies</a></span>
<span><a href="#">Sign in</a></span>
</nav>
</div>
<div id="banner-div">
<img class="banner" src="./resources/images/banner.jpg">
<div class="banner-text">
<p class="learn-smth">Learn something<br>new everyday</p>
<p class="lorem">Lorem ipsum dolor sit amet,<br>consectetur adipiscing elit.</p>
<p class="start-here">Start here</p>
</div>
</div>
Here is CSS:
*,
*::before,
*::after {
padding: 0;
margin: 0;
border: 0;
box-sizing: border-box;
}
a {
text-decoration: 0;
}
ul,
ol,
li {
list-style: none;
}
html,
body {
height: 100%;
line-height: 1;
font-family: Montserrat;
font-size: 16px;
color: rgb(73, 72, 72);
}
img {
vertical-align: top;
}
.header {
display: flex;
height: 64px;
width: 100%;
left: 0;
top: 0;
z-index: 50;
}
.hearer-logo {
height: 50px;
margin-left: 20px;
margin-top: 0.6em;
}
.brand {
font-size: 24px;
position: relative;
line-height: 2.7em;
}
.header-list {
position: absolute;
display: flex;
font-size: 30px;
font-weight: 500;
line-height: 2em;
right: 24px;
}
a {
color: rgb(73, 72, 72);
padding-left: 16px;
}
.menu-item {
margin: 0 0 0 16px;
}
.wrapper {
min-height: 100%;
overflow: hidden;
}
#banner-div {
display: flex;
width: 100%;
top: 64px;
background-color: lightgray;
align-items: center;
}
.banner-text {
display: flex;
flex-direction: column;
width: 100%;
margin: 24px 0px;
}
.start-here {
text-align: center;
font-size: 33px;
background-color: rgb(73, 72, 72);
color: white;
padding: 8px 75px;
width: 75%;
}
.banner {
padding: 32px 24px;
width: 60%;
}
.learn-smth {
font-weight: 700;
font-size: 70px;
line-height: 1.2;
}
.lorem {
font-weight: 600;
font-size: 38px;
padding-top: 40px;
padding-bottom: 60px;
}