how to put an element in front

Solutions on MaxInterview for how to put an element in front by the best coders in the world

showing results for - "how to put an element in front"
Davide
14 Jan 2020
1/* You must use the z-index property */
2
3.element1 {
4	z-index: 2;
5}
6
7.element2 {
8	z-index: 1;
9}
10
11/* all elements with the element1 class will be in front of elements with element2 class */