How can I center images for mobile only?

[ad_1]

I see a lot of people online giving out code to do it and that’s great, I’d love to use it, but where would I even put it? That’s what’s been confusing me.

I’m still pretty new to WordPress, but I’ve been doing pretty good with problem solving a lot of the issues and hurdles I’ve run into, but this one has me stumped. Is there another way to do this and I’m just missing the obvious?

If someone could point me in the right direction, that’d be amazing.

Thanks a lot!

[ad_2]
1 Comment
  1. What theme are you using? Does it have a page builder?

    Are you new to WordPress, or website building in general? Do you know any CSS?

    If you’re asking about custom CSS, there are a few places it can go. If you’re using a classic theme, Appearance > Customize > Additional CSS is a common location. As is your child theme’s style.css file. Or your theme’s options page.

    To center an image using custom CSS, one method is to set its margin:0 auto and text-align:center on the parent container. But there are several other ways to do it as well. We’d need to see your site to be able to give a specific example.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer