HOW TO CENTER IMAGES USING CSS
June 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:
img.center {
display: block;
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.
OTHER ARTICLES YOU MAY LIKE
SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY
If you are building anything serious on Supabase, whether that is a client portal, a SaaS app, an internal dashboard, or even a small side project that is starting to get traction, having a reliable database backup process is one of those tasks that quickly moves from optional to essential. Supabase makes a lot of […]
read moreUSING BUTTERNUT.AI TO CREATE PROFESSIONAL WEBSITES
Having a professional and efficient website is crucial for any business looking to thrive online. With the constant advancements in technology, it can be overwhelming to keep up with the latest tools and platforms available for website creation. However, by leveraging the innovative capabilities of Butternut.ai, businesses can maximize their efficiency and create stunning websites […]
read more



