Display block without 100% width

后端 未结 8 1034
谎友^
谎友^ 2020-12-12 21:27

I want to set a span element to appear below another element using the display property. I tried applying inline-block but without success, and figured I could use block if

相关标签:
8条回答
  • 2020-12-12 22:21

    Again: an answer that might be a little bit too late (but for those who find this page for the answer anyways).

    Instead of display:block; use display:inline-block;

    0 讨论(0)
  • 2020-12-12 22:22

    Use display: table.

    This answer must be at least 30 characters; I entered 20, so here's a few more.

    0 讨论(0)
提交回复
热议问题