@MelvinAguilar
Posted
Hi @Tunde-webdev, good job for completing this challenge! 👋
I am not an expert but here are some suggestions to improve your code:
You could use the backgrounds properties to fix the background
body {
. . .
background-color: hsl(225deg, 100%, 94%);
background-image: url(./images/pattern-background-desktop.svg);
background-repeat: no-repeat;
background-position: left top;
}
background-color
Set the background colorbackground-image
Set a background-imagebackground-repeat
Sets if a background image will be repeatedbackground-position
Sets the starting position of a background image.- Also you can use the
background-size
to specifies the size of the background image
The background property is a shorthand to all the properties mentioned above:
background: hsl(225deg, 100%, 94%)
url(./images/pattern-background-desktop.svg)
no-repeat
left top;
References: CSS background Property | Background property
I hope those tips will help you.
Good Job !
Marked as helpful