CSS Tags
CSS Tags
Selectors:
1. Universal Selectors * {}
4. Id Selectors #id {}
E.g.<div><article><p></p> <article>
</div>.
Use: div p {}
Use: a:Visited {}
Use: a:link {}
Use: a:active {}
(D) For Link-Cursor Hover link, <div>
<a href> </div>.
Use: a:Hover{}
background-color
background-image
background-repeat
background-attachment
background-position
(5) groove - Defines a 3D grooved border. The effect depends on the border-color
value
(6) ridge - Defines a 3D ridged border. The effect depends on the border-color value
(7) inset - Defines a 3D inset border. The effect depends on the border-color value
(8) outset - Defines a 3D outset border. The effect depends on the border-color value
13. Margin:
14. Padding:
(A)Padding A shorthand property for setting all the padding
properties in one declaration
15. Height/Width The height and width properties are used to set the
height and width of an element.
21. Units:
(F) vmin Phone mein vmin mtlb width/ LP mein Height. Imp:
Work as vh
22. Position:
(B) Relative; Main apni jagah par hoon, lekin thoda idhar-udhar ho
sakta hoon jaise left,right,top,botttom meri space koi
nahi gherunga aur overlap bhi ho jaunga
23. z-Index (-3,-2,-1,0,1,2,3) Decide overlap konsa niche konsa upr lekin static par
nhi chlta
(C) Align-item
25. Box-Shadow h-offset v-offset blur spread color inset
32. White-Space “Nowrap” krne se text niche nhi girega only x-axis scroll
33. :root {
Use any css property in this variables because u can’t change theme in 100’s of elements.
body {
body {
background-color: darkred;
.boxes {
flex-direction: column;
}
NOTE : If the screen like this then show this.
Transform Property:
40. Transform: rotate(45deg) For Element Rotate
^rotate: x 180deg;
^rotate: y 180deg;
^rotate: z 180deg;
41. Transform: Scale(1,2,3…..); Sizing Property in times
For Both Scale(1, 2);
1 value for x-axis
2 value for y-axis
Transform: ScaleY(2);
Transform: ScaleX(2);
42. Transform: TranslateY(200px) Element Slide Position
Shorthand: Translate(100px, 100px);
43. Transform : Skew(45deg); Skew; Kone pkd kr kich dena
Animation :
44. @keyframe Myname{
From { font-size: 20px;
background-color: Green; }
To { font-size: 40px;
background-color: Red; }
}
Note:
Animation-name, duration, timing-function, delay, iteration-count,direction