0

If there are multiple divs with the content written on it how can we overlap those divs one above the another

30th Jun 2018, 6:54 AM
Vanshika Ludhani
2 Answers
+ 2
Make a parent tag of all these divs, set the parent tag with css .parent { position: relative; } and set all child divs with css .parent div { position: absolute; left: 0px; /* or could be other px value */ top: 0px; /* or could be other px value */ }
30th Jun 2018, 7:12 AM
CalviŐČ
CalviŐČ - avatar
+ 1
Use the "z-index" property of CSS https://www.sololearn.com/learn/CSS/1118/?ref=app
30th Jun 2018, 7:11 AM
Utkαrsh
Utkαrsh - avatar