Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #595425

    Hello hello,
    I would like to align the white caption text from the left corner and at every image with the same distance.

    (Purchase code hidden if logged out) -18.41.47.png” alt=”” />

    I tried it with this code, but didn’t align from the left side.

    . (Purchase code hidden if logged out) {
    display: block;
    width: 52%;
    bottom: 20px;
    left: -40px;
    position: absolute;
    }

    Best wishes, Eline

    #596398

    Hey Eline!

    Thanks for getting in touch.

    You are on the right track with the CSS code you used. Just remove the width attribute; you do not want to force the width especially since it will through the longer caption texts out of alignment because of the left attribute added as well. Once you remove the width attribute, ensure that you make the left attribute positive and not -40, so you can have something like the following:

    . (Purchase code hidden if logged out)  {
    display: block;
    bottom: 20px;
    left: 10px;
    position: absolute;
    }

    Cheers!
    Jordan

    #623857

    Hi Jordan,
    Little late reaction but I am really happy to tell you that this worked! Thank you so much!!!

    Best wishes, Eline

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Caption text position’ is closed to new replies.