a left padding appears in crhomium when using flex; but not in firefox
i am using Manjaro as an OS so i don't know about Chrome. i have this issue where a padding appears on the left after using flexbox, this issue only happened in Chromium and not in firefox.
i don't know where the problem is (as i don't know if there's any problem with the code at all apart from accessibility and responsivenss but this is because i didn't finish coding yet)
this is my html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link rel="stylesheet" href="./styles.css" />
<title>Frontend Mentor | Stats preview card component</title>
</head>
<body>
<main class="container">
<div class="hero-image">
<img src="./images/image-header-desktop.jpg" alt="" srcset="" />
</div>
<div class="content">
<div class="main-header">
Get <span>insights</span> that help your business grow.
</div>
<div>
Discover the benefits of data analytics and make better decisions
regarding revenue, customer experience, and overall efficiency.
</div>
<div>
<div>
<div>10k+</div>
<div>companies</div>
</div>
<div>
<div>314</div>
<div>templates</div>
</div>
<div>
<div>12m+</div>
<div>queries</div>
</div>
</div>
</div>
</main>
</body>
</html>
this is the CSS
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap");
* {
margin: 0;
padding: 0;
}
body {
background-color: hsl(233, 47%, 7%);
font-size: 15px;
}
.container {
background-color: hsl(244, 38%, 16%);
display: flex;
flex-direction: row-reverse;
}
.main-header {
font-family: "Inter", sans-serif;
font-weight: 700;
}
span {
color: hsl(277, 64%, 61%);
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
ps: this is a frontendMentor challenge!
from Recent Questions - Stack Overflow https://ift.tt/3Hbi18q
https://ift.tt/eA8V8J
Comments
Post a Comment