Answer the question
In order to leave comments, you need to log in
The text pops out of the div in height. How to decide?
When zooming in (or when increasing the amount of text), it mercilessly rushes right through the div block down in height. Tried to change
height:100%on the
height:autoBut in this case, the block moves down. And if you move it up margin-top:-5em; , then when you increase the upper half of the block is hidden outside the screen.
Answer the question
In order to leave comments, you need to log in
Understood nothing! Block you from the top to the bottom of the screen. You increase the size of the text by scaling (the block cannot increase, but the text increases) and it is quite logical that at some point the text starts to fall out of the block. What do you need to get in the end? Prevent scaling or hide pop-up text?
I advise you to abandon the absolute, it was not invented in order to position the entire page absolutely.
You need to put the top image as a background (like the body tag), and remove the absolute positioning of the .pageb block, display: inline-block , height and z-index , and instead center the div with margin: 0 auto.
I cannot keep silent about the fact that here you need to remove the span and add this class immediately to h1:
<span class="nptitle">
<h1>Волшебный заголовок новости</h1>
</span>
<h1 class="nptitle">Волшебный заголовок новости</h1>
Disgusting layout. Look at examples of layouts and try to repeat.
See also the purpose of html tags.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question