Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Another team member set up the following for the "cover page" of the help file. As it is set as a background image, it does not resize when changing the size of the window. Can I simply change it to an image with percentage values?
<style type="text/css">/*<![CDATA[*/
body {
background-image: url("images/splash.jpg");
background-repeat: No-Repeat;
}
/*]]>*/</style>
Copy link to clipboard
Copied
There's a background-size property, which I've never used.
https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
I'd probably start with:
background-size: cover;
But there are a bunch of other settings, if that doesn't work. It looks like you can also set a width and height value like "background-size: 100% 50px;" which I think would stretch the image width to fit the width of the window while limiting the height to 50px (you'll get a distorted image if you don't match the original image aspect ratio).