0
Galley,
How do I place a text from a div in the middle of another div that has two separate photos.
<div>
<img>
<img>
</div>
<div>
<p></p>
<div>
Yellow and green are the Divs
I need it to look like this image
Note: I cannot change the html order by putting the text before, or inside the div along with the photos.
I tried to move photo 2 with margim top down, and then move the text with margin negative top, but everything was out of place, because the images and text are huge.
can’t change the order but need to put elsewhere? difficult so, just imagine putting
position: absolute
indiv
with the text and positioning usingmargin-top
, Still it won’t be all pretty, you’ll need to putmargin
in the seconddiv
, it would be better to put everything in the right position and avoid this "adjustments"– Ricardo Pontual
What is the need to keep order this way? Follow the development pattern, the only problem I see is the logic that is following.
– Mauro Alexandre
Calm down guys, sometimes it’s a dynamically generated html that he doesn’t have access to, he can only mess with css, or some wordpress template and stuff. But it may be that to do yes only in CSS...
– hugocsl
And the gray box is what? These Divs are inside a section or some other parent div?
– hugocsl
So, I’m at my job right now and I’m editing this page https://www.superestagios.com.br/index/cadastroEmpresa.php I need to fix the RESPONSIVE part, I divided the photo on the left into two parts and I need to put the questionnaire between the two, If the questionnaire doesn’t go down, it can’t. Give an inspect there on the page, and look at the responsive part
– Lukas Monteiro
I can not change the order pq the page when it is not resposiva, are next to each other, so the elements needed to be separate...
– Lukas Monteiro