• Hi all. Its me again. Still tweaking a few things on the very first website I have built! Slowly but surely I am getting there. There are two posts where I would like to center the images within them. They are in one column grid so images centered would look so much better! Please let me know what I need to tweak in my style.css. I am still very unfamiliar with this so please let me know where to go, what to replace, what to edit if possible. Below is my style.css. The site is https://www.piixdot.com. The two posts where I’d like to center the images are in “Artwork” & “Weddings”. Thanks a ton in advance.

    Moderator note. Large amounts of code should be posted on pastebin.com. You do not need to post your css. It can be seen by just knowing your url.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey now, hey now…
    First off. There is a reason why there is the “code” button at the top of the text editor when you are making a post on these forums…Use it, or the mods will come along and slap your wrist for it.
    ??

    Secondly.

    All you need to do is add the following inside the image tag within the post.

    style="display: block; position: relative; margin: 0 auto;"

    so the outcome would look like:

    <img src="[source here]" alt="[alt here]" style="display: block; position: relative; margin: 0 auto;" />

    Also, you may be able to just click the image within the post editor in the wordpress dashboard and then hit the center align button in the formatting options at the top of the editor.

    Your theme is a commercial theme and is supported here, https://graphpaperpress.com/support/

    Commercial themes are not supported on this forum.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Center images in a particular post’ is closed to new replies.