- 1
What is positions in CSS
Please help me what's positions in CSS HELP.
7 Respuestas
+ 2
Position property is used to specify the position of elements.
Five types of position-
1. Static: no special position element position in normal page flow.
2. Absolute: Element position with reference to the page.
3. Relative: Element position with respect to the parent element.
4 Sticky : Element stick to either top or bottom while scrolling the page.
5. Fixed: Element position which stays in the same place where you position them.
Note: After declaring the position we use the top,bottom, right and left value to specify the position
(use any of them for your relevance)
Eg.
p{
position:any;
( if required )top:any;
( if required )bottom:any;
( if required )left:any;
( if required ) right:any;
}
No need to use them all. Use the property if required.
+ 1
The position property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky).
+ 1
Welcome Safder Raza
0
We can make web developer watsapp group
- 2
Thanks you