How to add a button ontop of an image?

Hi,

I had created a new topic before with regard to adding a button that hovers over a classic image (Add a button hovering over a classic image) and friech had suggested setting the section background as an image and then add a button over it. I tried that but then I was having issues with the padding/margin as the image kept changing dimensions every time I tried changing the margin/padding %'s. I’d like for that image to stay fixed and I’d like to have a button in the blank parts of the image.
I will include my site details in a secure note if required.

Hi @Nalwi,

Thank you for writing in, that is the default behaviour of a background-image as its background-size is set to cover, see more details about the background-size property on the link below. To keep the aspect ratio of your background-image, please set its background-size to contain.

CSS background-size Property

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.