2
I have a header tag, where is my menu, this header tag has 80% screen width and is fixed at the top. I have just below the menu an image, which I want to take 100% of the screen, but is inside the same header tag. It’s like this image doesn’t get the width of the header tag, and instead get 100% of the screen, but still get fixed at the top along with the header?
It worked! But I had a problem. The image was fixed below the menu exactly as it should be, but it wasn’t centered on the page, it was to the right,?
– Tiago P.C
I added three more properties,
left, right e margin: auto
. Add them.– Diego Souza
Perfect! It was exactly the way I needed it, thank you so much for your time and help! ;)
– Tiago P.C