G
G
GoodPirojok2020-05-01 15:35:42
css
GoodPirojok, 2020-05-01 15:35:42

How to set a property to a block so that the text cannot crawl out of it?

There is text in the block if you set margin:200px;
then the text tag will fly outside the block and will not be visible, how to make it so that for any maximum indentation value this text does not fly outside the block?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lord_Dantes, 2020-05-01
@Lord_Dantes

Everything is fine.
https://codepen.io/lord-dantes/pen/oNjGGRy

Q
Qeuvec, 2020-05-01
@Qeuvec

The block is probably also given a height, so the text has nowhere else to go but disappear. Either get rid of the height (height), or set the block to overflow: auto;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question