@MelvinAguilar
Posted
Hello there ๐. Good job on completing the challenge !
I have some feedback for you if you want to improve your code.
- You could update the CSS backgrounds properties to set the background:
body {
. . .
min-height: 100vh;
background-color: hsl(185, 75%, 39%);
background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg);
background-repeat: no-repeat, no-repeat;
background-position: right 52vw bottom 35vh, left 48vw top 52vh;
}
background-color
Set the background colorbackground-image
Set a background imagebackground-repeat
Sets if a background image will be repeated along the horizontal and vertical axes, or not repeated at all.background-position
Sets the starting position of a background image. More information- You can also specify the size of the background image with background-size
The background
property is shorthand for all the properties mentioned above but for now. It is better to understand them separately.
The background-position
for me worked with the vw (viewport width) and vh (viewport height) units, but you can also use percentages. It's just a matter of trial and error to place them as you wish.
References: 1.CSS background Property | 2.Background property 3.Background-repeat (MDN)
I hope you find it useful! ๐
Happy coding!
Marked as helpful
@Diggardson270
Posted
@MelvinAguilar Thanks alot melvin, I'm just having issues with my responsive design skill