The z-index property in CSS controls the vertical position order of an elements.
An element with greater position order is always use in front & lower in back.
Z-index property:
z-index property is use always greatest position order of an element.
Syntax:-
An element with greater position order is always use in front & lower in back.
Z-index property:
z-index property is use always greatest position order of an element.
Syntax:-
z-index: "position-order";
Syntax Example:-
z-index: 1;
Example: HTML & CSS code
Output of Above the Code is as below.Z-index:2Z-index:3Z-index:1
No comments:
Post a Comment