CSS Sheets
CSS Sheets
CSS cheatsheet
code_wars_official
--> Syntax to write CSS
2. Internal CSS :-
Using Id Name :-
background-size: cover;
background-size: contain;
overflow: hidden;
Hide the element that goes out side of div’s
height of width or any other element
overflow: scroll;
--> Display :-
display : block; The element is displayed as a block-level
element, taking up the full width of its container, starting on a
new line (e.g., <div>, <p>).
Justify-content : Value ;
align-content : Value ;
Start Center end
Thickness of
Border
color of
Style of
Border
Border
--> Border-style :-
border-style: dotted;
border-style: dashed;
border-style: double;
border-style: groove;
border-radius: 35px ;
border-top-left-radius: 30px;
border-top-right-radius: 100px;
border-bottom-left-radius: 50px;
border-bottom-right-radius: 13px;
--> Padding :-
Padding adds space inside the element but
outside the content
div1
div2
padding-left: 30px;
padding-right: 100px;
padding-bottom: 5px;
padding-top: 14px;
--> Gradients :-
background: repeating-linear-
gradient(to right, cyan,pink)
background: radial-
gradient(circle, cyan,pink)
background: repeating-radial-
gradient(circle, cyan,pink)
background: conicgradient(from
45deg, red,yellow,lime,cyan,pink)
--> Z-index:-
.div-blue{
z-index : 1;
.div-green{
}
z-index : 0;
}
.div-blue have higher z-index
then .div-green that’s why blue
shows on top of green
Key Properties:
rotate 45deg
--> backdrop-filter
Common Filters:
blur(px) – Blurs the background.
brightness(%) – Adjusts brightness.
grayscale(%) – Converts the background to grayscale.
contrast(%) – Adjusts contrast.
--> Media Queries
Background Properties