-1
How the image shows. I have a div
mother containing 5 div
vertically aligned.
How do I change the position of the last div contact
positioning it between home
and services
without having to change the HTML structure ( simply using CSS or JS).
I tried to use position: relative
and position: absolute
and move the div
purposefully top
. The problem is that when moving the element it is superimposed on the others (above).
What would be the solution to this case ?
Why exactly does it need to be in CSS?. The ideal would be to change HTML or dynamically with Javascript.
– mau humor
@mauhumor changed the question... A solution with Js is also valid !
– PululuK
Explain the context better, and add the HTML of the relevant snippet, which is easier.
– Bacco
Possible duplicate of You can change the vertical order of Divs by CSS?
– Andre Figueiredo