I’ve created some image banners within canva to have a button over them. However, the button adjusts in size depending on the webpage size and this causes the button to move over the text. How do I keep the button size to be relative to the text on the image banner?
From my suggestin you can crate the left side with image and then insert the top part and text and button and then button part with image. This will easy for management.
Other wise, it need to write the js. which will measure the image width , the button position and depending of the current view port, it will recalculate the button position which is a tricky task.
thank you
I have create a sample for you, with your image and a button you can check this solution may work. Here when you change the window position the button position also changed. it is done using javascript.
Second solution is
part 1 image left side
part 2 right side top
part 3 left side bottom
Insert a button using HTML with this three image like
img 1 (left)
(img 3 left)
(img 2 right)
button middle of them using HTML css
I’m using Refresh theme, but I just made a change to keep the button in a separate image banner. I thought of a work around. I originally had the button and image together. I’d be willing to change it back if the responsive image banner can be made fairly easy, but if it’s too complicated I’m okay leaving as is.