0
Why margin top not working?
1div contain 4 paragraph. 1st two paragraph on the top by using float property. Then I try to add margin top to 3rd paragraph but failed 😪 https://code.sololearn.com/WDOy9YId76ZU/?ref=app
2 ответов
+ 5
Your margin is collapsing due to the display type. Goggle CSS margin collapse for more info.
Try adding;
display: inline-block;
to your CSS three class definition before your margin settings
+ 3
A lot of thanks for help