• Resolved Sharon

    (@bilby238)


    Hi all,

    I’m having a problem changing the margin on my post images. I’ve tried every combination of .entry-content img, .child-page img and . alignright that I can think of and still no joy. I’ve tried changing the text margins too but nothing seems to “stick”. Was wondering if anyone else might have some ideas of things I could try.

    My end goal is to increase the distance on the left of the image so that the text isn’t so crowded, but I don’t want to change the margins on all images, just the ones on the posts.

    Grateful for any help. Here is an example of one of the posts I’m trying to change.

    Cheers,

    Sharon

Viewing 4 replies - 1 through 4 (of 4 total)
  • are you adding the CSS to the child theme’s style.css?

    try:

    .entry-content .alignright { margin-left: 3.5em; }

    adjust the value to your needs …

    Thread Starter Sharon

    (@bilby238)

    Hi alchymyth,

    Thanks for getting back to me. Yes, I’m adding it to the Child Theme – learned the hard way not to change theme files ??

    I gave that a go, cleared all caches, refreshed screen and still not holding. I can’t understand why this isn’t working, driving me nuts…..

    try to force the margin with !important:

    .entry-content .alignright { margin-left: 50px!important; }

    Thread Starter Sharon

    (@bilby238)

    Oh, gosh. I’m so silly, why didn’t I think of that? That’s got it. Thanks very much for your help ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems changing margin on post images’ is closed to new replies.