0
I have a DIV located in the center of the screen, with absolute position. I intend to put a text in the middle of it, that if it is larger than the div, go beyond its limits on the right and left, as in the photo above. Is it possible to do that? I will replace one text with another every time, so I can’t just manually define a margin-left, for example.
<div class="pai">
<p>Texto aqui para ultrapassar a div</p>
</div>
.pai{
position: absolute;
margin: auto;
text-align: center;
height: 100px;
width: 100px;
}
In this case the text exceeds the div only on the right side, also need on the left, as I do?
– Tester
@Tester. as well as so friend, surpasses on both sides... look ai https://prnt.sc/y1mble I don’t understand what you mean
– hugocsl