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

9th Nov 2020, 1:31 AM
NUR ISLAM
NUR ISLAM - avatar
2 Réponses
+ 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
9th Nov 2020, 1:38 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
A lot of thanks for help
9th Nov 2020, 1:55 AM
NUR ISLAM
NUR ISLAM - avatar