Hello everyone, I have header_inner_p elements, I want to press them to header_img, I can’t do anything, I also tried to make a header on grids, but it turned out to be very difficult for me, I couldn’t even move, I would be interested see the code on the grids, as I don’t understand how it works.
You can use auto margins to push elements away from each other.
e.g.
.header_inner_p {
margin-left: auto;
}
That will push that div tight up to .header_img.
An auto margin takes up as much space as it can which has the effect of pushing an element to one side or the other. That’s the reason that margin:0 auto on a block element will center the element.
1 Like
Thanks, it works.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.