@correlucas
Posted
๐พHello Kalhara, congratulations for your new solution!
๐ Nice solution and nice code! I can see that you paid a lot of attention to your code/design. If you donโt mind Iโve some tips for you:
Your svg background is not displaying because you didnt indicate the correct location for the folder, here's the correct import background-image: url(../images/pattern-background-desktop.svg);
you've missed ../
before the folder:
body {
font-family: var(--ff-primary);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--clr-Pale-blue);
background-image: url(../images/pattern-background-desktop.svg);
background-size: contain;
background-repeat: no-repeat;
}
Use background-size: contain;
to make the background have the correct sizing
Note that if you're using the folder locally the live server recognizes the image location, but with a live solution you need to indicate where the image is.
Remember, when the image is inside the repository folder use dot slash ./
and if is inside a subfolder use dot dot slash ../
If the image is the same folder of the html without folder just add normal path.
โ๏ธ I hope this helps you and happy coding!
Marked as helpful
@Impodays
Posted
@correlucas thanks I didn't know that. you guys are incredible helpful.