Give help. Get help.
Can anyone help me to center a banner in a responsive way. I need to inside a container, center the image on position Y and X according resolution and preferably fill without stretch the image.
I have this:
ps: ignore size image, maybe max.: 950px
background-position-y: 50% !important;
Could you make a Codepen.io demo…it would be of much more use that a random snippet of CSS.
I haved put here the code, but, disappeared :(
go ahead: https://codepen.io/anon/pen/yPNPom
I’m really not clear on what it is you are trying to do.
The banner is centered (especially as it’s 100% wide)…
As for the background image you have this set to cover so naturally it stretches.
You might try contain but without seeing what this is supposed to look like it’s hard to comment.
With contain doesn´t work well, but with the cover stays better. Anyway, I put a background-position center center and change a little bit the .wrapper, now it´s fine.
You must be logged in to reply to this topic.