Gradients are one of the most interesting properties and i have been using them since the day i learned about them.
I am always ready to create my own gradients.
For those who do not know about gradients , they are beautiful designs for our webpage background.
So let us take the yesterday's example where i created a div and added a background image for the div.
Let us today create a gradient instead of a background with image.
Final Output :
Steps involved :
Step 1 : create a proper html structure in a file.
Step 2 : here is the code for the style tag.
Step 3 : run the file in a browser and see the output.
FULL CODE :
<!DOCTYPLE HTML>
<html>
<head>
<meta charset="utf-8">
<title>DIV AND SPAN</title>
<style>
.boxliliput{
background:linear-gradient(#187 , #111);
color: White;
font-weight:600;
font-size: 32.22px;
height: 50%;
background-color: #232A34;
width: 70%;
padding: 25px 10px;
border-width: 10px 7px;
border-color: #96B8A8;
border-style: ridge;
border-radius: 20px;
}
</style>
</head>
<body>
<div class="boxliliput">
<p> <b>DESCRITION :</b> </p>
<p id="p2"> Hello , @sct.blurt</p>
</div><br/>
</body>
</html>
We have created a page again for a description saying hello ,@sct.blurt.
linear-gradients takes atleast two parameters and they are colors or color codes.
you can directly use the name of colors as well , i have used color code in my case.
so try creating something from it and then share the output below for some vote from blurtutorials.
I will give vote upto 50% vote for the people creating a gradient and sharing below in comments.
offer ends after this post payout.
Thank You.
Link For Previous Tutorials
- Inline CSS
- Internal CSS and Its Implementation
- External CSS
- ID's And Classes In CSS
- DIVS AND SPAN with CSS
- PADDING PROPERTY IN CSS #1
- PADDING PROPERTY IN CSS #2
- BOX MODEL BORDER PROPERTY IN CSS
- BOX MODEL BORDER PROPERTY IN CSS #2
- CREATE A CIRCLE USING BOX MODEL BORDER PROPERTY IN CSS #3
- OUTLINE BORDERS IN CSS
- MARGIN PROPERTY IN CSS
- Background Property In CSS #1
here is my gradient.
good , keep it up.
Congratulations! This post has been upvoted by the @blurtcurator communal account,
You can request a vote every 12 hours from the #getupvote channel in the official Blurt Discord.Don't wait to join ,lots of good stuff happening there.