Centring an image wider than it's container with CSS
Simple solution on how to centre an image wider than it's container with pure CSS.
This solution was found on stack overflow:
And requires two divs to wrap around the image and a little CSS. Here's a working pen:
Written by Dave O'Brien
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#