Display block without 100% width

后端 未结 8 1056
谎友^
谎友^ 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:01

    you can use:

    width: max-content;

    Note: support is limited, check here for a full breakdown of supporting browsers

提交回复
热议问题