How to offset the position of an image embeded into an Image Info Box?

Posted in: Newspaper
Post count: 234

Hi there,

Could you please tell me how to offset the position of an image embeded into an “Image Info Box” elements?

Example : https://imgur.com/0s49pLZ
I would like to get the ocean a bit more above the button.

Thank you in advance 🙂

Post count: 35449

Hi,

Unfortunately there is no settings for this, but it can be done with a custom css, if you wan I can help you with this, just provide me a link where I can inspect the image info box.

Thank you for your understanding!

Post count: 234

That would be fantastic thank you!

The page is : https://tinyurl.com/yatyq43k

If you can show me how to offset from top to bottom and left to right, that would be very useful to me.
Thank you

Post count: 35449

Hi,

The few settings that you can use from the image are these -> https://i.imgur.com/26k1aax.jpg -> https://i.imgur.com/DHeFgb7.jpg
If you want you can use this code -> https://i.imgur.com/RsX49J7.png
.tdm_block_image_info_box .tds-button1{
margin-bottom: 20px;
margin-right: 50px;
}

It will apply on all image inf box, if you want to apply it only on the image you provide above you need to use the class from that image like this -> https://i.imgur.com/YCT9elT.png
.tdm_block_image_info_box.tdi_133_5a9 .tds-button1{
margin-bottom: 20px;
margin-right: 50px;
}

The code need to be set in theme panel> custom code> custom css.

Hope this will help you!
Thank you!

Post count: 234

Thank you for your answer Calin!

My question was about how to move the image itself, not the button (but it was good to know).

Would you be able to teach me how to offset the position of the image, without changing the position of the element? because the crop region is not ideal sometimes.

Please let me know if you have any questions.

Thanks a lot

Post count: 234

If it can help, I am basically looking for a “Image V alignment” for the “Image Info Box”

The same “Image V alignment” you have for the “Single Post Bg Featured Image”

Post count: 35449

Hi,

You can achieve that using this custom css -> https://i.imgur.com/bAXVbVm.jpg
.tdm_block_image_info_box .tdm-image-box {
background-position: 50% 65%;
}

You can change the numbers to achieve the position you want.

Hope this will help you better!

Post count: 234

Thank you Calin !
Where should I insert this code to control each image_info_box independently? If I want to ajust 1 or 2 images.

Post count: 35449

Hi,

If you want to set the code individual per image box it will be better to add an extra class for each element you want to edit -> https://i.imgur.com/N7R5zVW.png and the code will be like this -> https://i.imgur.com/EIHQ0RE.jpg

.tdm_block_image_info_box.img-box-1 .tdm-image-box {
background-position: 50% 65%;
}

Also what you need to do for the other image box element is to change the number from the extra class and reuse the code withe the individual settings. The code need to be set in theme panel. custom code> custom css.

Hope this will help you!

Post count: 234

Perfect, thanks you!

It would be very appreciate if your team could add an “Image V alignment” option of your “image info box” element. That would be so so useful.

Thank you very much.

Post count: 35449

Hi,

I note this on our suggestion list for improvements.

Thank you for your suggestion!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.