html - css: why texts will move up after remove position:absolute -
html code:
<!doctype html> <html> <head> <style> h2 { position:absolute;} </style> </head> <body> <h2>this heading absolute position</h2> </body> </html> question:
if remove line: position:absolute;, texts in <h2>...</h2> move up, why?
in default view, without css...
when position: absolute; there, margins not collapsed.

when remove position: absolute;, margins collapse, , gets mingled body's margin.

Comments
Post a Comment