0

is position:absolute and display:block the same?

i think these 2 do the same work?

4th May 2021, 5:44 AM
Mehedi Hassan
Mehedi Hassan - avatar
1 Resposta
+ 1
No the are totally different. display: block; makes an html element take all the available space , to be simple block elements stand in one line nothing can stand in front of them. In the other hand position: absolute; remove an element from the normal flow;
4th May 2021, 5:53 AM
Alpha Diallo
Alpha Diallo - avatar