HOW TO CENTER IMAGES USING CSSJune 25, 2016 / by Marco / Categories : TIP AND TRICKS, website, Websites
Centering images or banners on a web page can be a nightmare. I’ve tried several CSS methods but the only way I was able to center the image was to use this code:[codesyntax lang=”css”]
margin: 0 auto;
Just make sure you change the img.center to your own CSS class. I decided to write this down so I can reference it later on and hopefully this works for you as well. Good luck and if there’s any help that you need please leave it in the comments and I’ll try to respond.
Limit to 5 sponsors.
OTHER ARTICLES YOU MAY LIKE
Have you noticed the Reading List option in Google Chrome? It’s located on the top right hand side of the Chrome bookmark bar and it seems to have appears after Google Chrome version 89. Most of you probably don’t know what it is or does so let me quickly explain. Reading list is a new […]read more
WPforms is a WordPress Plugin you can use to add any type of forms to your WordPress site. WPforms is a drag-and-drop form builder, which means that you don’t need to know how to code to build a landing page, sales page, opt-in page, thank you page or any other type of page you can […]read more