Hello,
So this is a two parter for Harlowe:
1. How do I add an image into a passage and have it appear as the background and be responsive to the size of the screen (so it fills the screen no matter how big or small it gets - without distorting the dimensions though.)
2. How do I add a regular image into a passage and make it responsive like the text?
Thanks!
Comments
So using
Worked well to make any image added to a passage site properly and respond to screen size changes.
I also manage to set an image as a background that is responsive BUT for some reason my text appears under the image rather than on top of it. This is what I have right now:
So...where did I go wrong?
I'have played around with big pictures as background for stories and finaly tried the css below. I'ts a little complicated but gives you a pretty background for most size of devices :
and for ordinary images :
note: if you are planning to use Relative URL's for your images then they need to be placed within a folder/directory that is located relative to the location you are saving the story HTML your create via the Publish to File option. Relative referenced images will not appear when using the Test or Play options.
To define the problem again: The background of my game is plain dark grey. In certain passages I want to add a background that covers the whole screen and allows text to sit on top of it. I have maybe a dozen different backgrounds for a dozen different passages.