Home / Web Development / CSS / Center Image in div with overflow hidden

Center Image in div with overflow hidden

Here’s a simple CSS in HTML solution to have fullscreen backgrounds vertical and horizzontal centering respective image, image overflow hidden.Here you can center the image horizontally by adding a negative margin and left portion. If you want to you can also center the image vertically by adding a negative margin and top portion.



CODE

Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com