How to do line breaking in a <li>?

Asked

Viewed 2,597 times

2

How do I break a line in a text that is inside a li, and configure css to be correct?

I’m trying to make a menu whose list items have a square background, but I can make the line break but the problem is in CSS that I can’t set up, and the error is all messed up, and this makes it impossible for me to do such an act, I would like you to help me please.

  • 2

    tried the word-wrap css property:

  • 1

    where is the code? Put the code, can not imagine what it should be.

  • Related: http://answall.com/questions/5302/como-adjustr-altura-da-div-conforme-o-texto http://answall.com/questions/95429/preciso-de-uma-fun%C3%A7%C3%A3o-para-adicionar-em-certas-condi%C3%A7%C3%B5es/95436#95436

1 answer

1

I didn’t quite understand your question, you try to put the code, but as far as I could tell, it would only be the case of a </br>

give a line break in a text that is inside a li

In HTML at the point where you want to give the line break and put </br>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.