How do I prevent the text from following a straight line html

0

When entering text, it follows a straight line and follows infinitely making a scroll appear to see it completely, and I would like instead of it going straight, a line break, but without using the tag br, with css maybe.

For the design I'm using materialize.

    
asked by Astaroth 08.03.2018 в 01:21
source

2 answers

3

inside the dodne tag you have content that text apply the following style:

<style>
    p{
      word-wrap: break-word;
    }
  </style>

It will help to break the line and split it into 2 so that it does not overflow, I for example apply it to a paragraph that I have full of text and that is overflowing me

    
answered by 08.03.2018 / 01:27
source
1

Materialize is a CSS framework that is responsive, that is, it allows to resize all the elements that it renders so that its visualization is correct.

For your case, and without knowing how you built the text, this can go inside the div with the class flow-text , an example would be like this:

<p class="flow-text">El texto de su documento</p>

This should correct the problem you have

    
answered by 08.03.2018 в 01:29