Table of contents
Today's day 14 Goal is to Build and learn by creating a gradient loading bar in Html & CSS from YT Tutorial.
HTML
1. Create a div with class loader in HTML.
- Write the following code.
<div class="loader">
</div>
CSS
1. In CSS *
asterisk means universal selector, which research the margin and padding.
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
2. How do you justify content center in CSS?
- Write the following code.
justify-content: center;
3. How to use position property in css?
- Relative position property is relative to viewport like fixed.
position: relative;
4. How to create a loading bar in CSS?
- Write the following code.
width: 300px;
height: 10px;
background : aliceblue;
- important points to note here, height property only works when the position property is given to a class or ID.
5. How to give border radius in CSS?
- Write the following code.
border-radius: 3px;
JavaScript
-
Conclusion
Created a div with class loader in HTML.
History about
*
in CSS.Justify content center in CSS.
Position property in CSS.
Create a loading bar in CSS.
Border radius in CSS.
My Code:
Source: YT
Author: Dheeraj.y