I’m looking to float/overlay an image with text over the 6th of the header slides on this site: https://www.malenytropicalretreat.com The owner has sent me a new header image (already uploaded - number 6 slide) with the text he would like already embedded in the image. You will see when it loads in smaller screen sizes the image/text part stays to the right and doesn’t appear in the center. After checking the existing code, can someone suggest coding for a separate image to float above slider image in the existing html.
Thanks in anticipation, Graeme
However the correct way would be to adjust the slider settings to display the images at center position as the rules are written dynamically into the tag.
Thanks so much for that, it worked perfectly and also I changed it on all the other images and they also now center better too. That last line you refer to, I was meaning did I need to get a separate image with the text on it to float over the header image. However, the way you have done it eliminates that idea anyway, so great.
However I now ask is there also a simple way to get all the text in the headers which is currently set up as data-x and data-y axis’s to also stay evenly centralized as screen sizes reduce?
That’s probably not the right answer (although seems to work perfectly) as I don’t see why your slider would offset center everything like that by default. The second line doesn’t seem to be centred at all in any width in your original display…
Thanks again. That is much better. Simple when you know how. I have however left all the data-x and data-y axis’s as they were. I assume I don’t completely remove these?
There should be no need to remove them when the css I have has been added.
Indeed it may be that the JS is relying on them being in place (if the JS is badly written ) but that would be something to look up in the documentation for the slider plugin.