سؤال

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