Positioning with html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Positioning with html

Is it possible to set two elements in html at same position??

16th May 2018, 3:22 PM
Manorama
Manorama - avatar
5 Answers
+ 2
Vladimir yes..thank you now it works .... What a silly mistake I have done.... thanks 👍
17th May 2018, 2:08 AM
Manorama
Manorama - avatar
+ 1
thanks Brains but check my code https://code.sololearn.com/WCkIkEIEqn8A/?ref=app I want to put two div's on top of each other ... at same position. But they are appearing one after the another
16th May 2018, 4:17 PM
Manorama
Manorama - avatar
+ 1
There is an error in your code: #d1,#d2{ position: absolute; <- there was , instead of ; top:20%; left:50%; height:100px; width:150px; } Happy coding! :)
16th May 2018, 6:44 PM
Vladimir
Vladimir - avatar
0
elem1,elem2{ position: absolute, top:20%; left'50% }
16th May 2018, 3:25 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar