Why is the paragraph not floating beside the profilePic?

后端 未结 3 640
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 13:55

Somehow, the paragraph is not floating beside the profilePic. It starts from the bottom of the profilePic. I am not able to understand why.

What is the mistake here?

3条回答
  •  醉梦人生
    2021-01-23 14:17

    As others have mentioned, it is because you have your

    wrapped in a

    with class infoText, which applies the styling display: inline-block; float:left; from the css you wrote. I would suggest either taking out the
    entirely, or just remove the infoText styling you have. Furthermore, you probably want margin-top:0 on .infoText to bring the text to the top.

    Does that make sense?

提交回复
热议问题