1
People is the following I have a father div and another div with a text in position Absolute... this text is aligned to the top and left of the father div and I need to align to the center... things like top: x% or left x% .. They work because the parent element is dynamic and responsive ...I need it to stay right in the center. I tried things like Justify content and align items in the center but it didn’t help.. someone knows how to... follow the code of the div :
.textotoposobre{
text-align: center;
color: white;
font-family: 'Open Sans';
align-items: center;
justify-content: center;
top: 30%;
left: 28%;
}
A very useful site to learn how to center elements and text in CSS is <a href="http://howtocenterincss.com/">howtocenterincss.com</a>. It allows you to choose the height and width of the element, the alignment of content and what versions of internet explorer you need the code to work.
– Leonardo Riether
I’ll take a look obg
– André