If there are multiple divs with the content written on it how can we overlap those divs one above the another | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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