Follow this guide to learn how to add a color gradient to a website using CSS Gradient!
The setup for this concept is fairly simple.
<style></style>
elementbody
as the selector{
and }
)At this point, the CSS code within the <style></style>
element should look something like this:
body {
}
The project should be ready for styling.
The cool thing about CSS Gradient is that it will provide all the code needed to add the colors. Copy that code, and paste it into the CSS for the Glitch site.
body
ruleset, (between {
and }
), paste the code (starting with background
)That should be it! The code within the <style></style>
element should end up looking something like this:
body {
background: rgb(34,193,195);
background: linear-gradient(163deg, rgba(34,193,195,1) 0%, rgba(104,191,147,1) 10%, rgba(101,175,65,1) 40%, rgba(253,240,45,1) 100%);
}