Display block without 100% width

后端 未结 8 1060
谎友^
谎友^ 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 21:59

    I would keep each row to its own div, so...

    Content
    Content

    And then for the CSS:

    .cell{display:inline-block}
    

    It's hard to give you a solution without seeing your original code.

提交回复
热议问题