Lucas πΎβ’ 104,420
@correlucas
Posted
πΎHello Akash Nagindar, congratulations for your new solution!
Your solution is great bro, but your background is not displaying full width because you've missed this property background-size: contain;
instead of using cover
.
Here's your code with the fixes:
body {
font-size: 16px;
line-height: 1.3;
font-family: 'Red Hat Display', sans-serif;
background: var(--Pale-blue);
background-image: url(../images/pattern-background-desktop.svg);
background-position: center top;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: contain;
}
π I hope this helps you and happy coding!
0