문제

I am using a centered list <li> in my website. The list takes up 70% of the width. The problem I have now is that the text, written below it shows up on the right of the list. How do I avoid this?

I do not want to just put <br /> in front of the text, because the site is responsive and it would mess up the mobile view. I also do not want to use a div width a fixed height on the right, because it would again cause problems with the mobile view.

Thanks for your help!

도움이 되었습니까?

해결책

You need to give your LI elements a display attribute of block

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top