How to resize the background image to fit the screen using CSS

0 votes
asked Jan 12 by SmuJamesB (2,650 points)
Is it possible to automatically resize an image to fit the user's web browser's window size?

1 Answer

0 votes
answered Jan 12 by Chapel (48,690 points)
selected Feb 7 by SmuJamesB
Best answer
You can use the CSS background-size rule and set it to either contain or cover based on your needs.
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.