After spending an hour researching, I am still struggling with a repeating background color issue on the main page of a website that I designed. I have tried removing 'display: flex;' and clearing the content of BODY, but nothing has worked so far.
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: conic-gradient(from 180deg,#86BBD8, #86BBD8, #5881AB, #5881AB);
}
header {
display: flex;
width: 90%;
height: 10vh;
margin: auto;
align-items: center;
}
nav {
flex: 1;
}
.nav-links {
display: flex;
justify-content: space-around;
list-style: none;
}
.nav-link {
text-decoration: none;
font-size: 24px;
line-height: 36px;
color: #564787;
text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
}
<body>
<header>
<nav>
<ul class="nav-links">
<li><a href="#" class="nav-link">Inicio</a></li>
<li><a href="#" class="nav-link">Institución</a></li>
<li><a href="#" class="nav-link">Noticias</a></li>
<li><a href="#" class="nav-link">Contacto</a></li>
</ul>
</nav>
</header>
</body>
I need to find a solution to prevent the Conic-Gradient from repeating itself.