Empty div (with style: height) will not display

前端 未结 7 1132
独厮守ぢ
独厮守ぢ 2020-12-29 21:06

Incredibly simple piece of HTML - but not displaying how I would expect.

I\'m trying to create an empty div that displays as whitespace on the top of the p

7条回答
  •  醉梦人生
    2020-12-29 21:28

    If you just want to add white space try this

    FIDDLE

    or you could just add padding to the body like body { padding-top: 400px; }

提交回复
热议问题