Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1157929

    Hi, when I insert an amazon image affiliate code into a code block, the resulting image is left justified on my page. I’d like to have the image be center-justified.

    In the past, I have done this by segmenting my color block into 3 columns and placing the code block in the center column. I’d prefer to avoid that method this time because I am creating a shop page and don’t want the excess empty space created by the empty columns.

    Thanks for any and all advice!

    #1158136

    Hey Uncannystevo,

    Do you want the images to be on the same row or on different rows?

    Best regards,
    Rikard

    #1158165

    Hi Rikard,

    The goal is to have the images be separated by text blocks that would provide the title of the product and a description of the product:

    Code block
    Text block
    Code block
    Text block
    Code block
    Text block

    …and so on, all of which ideally center justified.

    #1158364

    Hi,

    Thanks for the clarification. I had a look at the images, but there’s no class which we can target them with. Could you try wrapping them in a div maybe?

    <div class="amazon-img">
    Your image goes here
    </div>

    After that we should be able to target the images with CSS.

    Best regards,
    Rikard

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

You must be logged in to reply to this topic.