• Resolved PixelGr8

    (@pixelgr8)


    Hi
    I am working on my first WordPress website and I am having trouble left justifying the pictures that I upload when you click on them from the gallery. I am including the link illustrating the issue, what I would like to see is that the picture aligns with the text. (left; don’t want to change the justification of the text)

    Thank you very much for your help!
    Morgan

    https://www.ads-software.com/plugins/gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    first, your #main element has the width of 948px, the #container element inside it has the left and right margin of 220px and you set the width of the #content element to be 900px when it can be 508px at most. So you should fix this.

    As for the image, if you want it to be aligned left, you should change

    #content .attachment img {
        display: block;
        margin: 0 auto;
    }
    #content .attachment img {
        max-width: 900px;
    }

    to

    #content .attachment img {
        display: block;
        margin: 0;
        max-width: 100%;
    }

    in your css.

    Hope this helps.

    Thread Starter PixelGr8

    (@pixelgr8)

    Hi,

    Thank you so much for your help and prompt reply!

    I will follow your suggestions.

    Best,
    Morgan

    Thread Starter PixelGr8

    (@pixelgr8)

    Hi Asta!

    I followed your directions and it worked like magic! Thanks a million!!!

    Morgan

    Thread Starter PixelGr8

    (@pixelgr8)

    Solved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't left justify image in gallery’ is closed to new replies.