Home › Forums › Front-end Issues › WordPress 4.4 responsive images › Reply To: WordPress 4.4 responsive images
Quick note on your site tor2dbear, your CSS is resizing the image to max-height: 100vh;
which is distorting your image. I’d put the image inside a container which has the property height: 100vh;
and then set your image as the background-image
and set the background-size
to cover
and background-position
to center
. This will then not distort your image but note that this wont work in older browsers (IE 9+ will be fine: http://caniuse.com/#search=background-size).
Like this: http://codepen.io/nathobson/pen/bEeWEZ
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.