How to make an inline element appear on new line, or block element not occupy the whole line?

前端 未结 4 1727
不知归路
不知归路 2020-12-25 09:42

I can\'t figure out how to do this with CSS. If I just use a
tag, it works flawlessly, but I\'m trying to avoid doing that for obvious reasons.

4条回答
  •  余生分开走
    2020-12-25 10:05

    You can give it a property display block; so it will behave like a div and have its own line

    CSS:

    .feature_desc {
       display: block;
       ....
    }
    

提交回复
热议问题