I want help to fix this code, with a lot of effort I found a way to put the text on the image with this code. the only problem is that the image does not have a fixed size and changes depending on the screen resolution
(sometimes the image is a square and other times it’s perfect) how I do to make it fixed width at 805 pixels ?
where is the error?
thank you.
<ul id="main" style="display:block;width:60%;height:500px;min-width:500px;font-weight:normal;list-style:none;box-sizing:border-box;background-color:#066;background-image: url(https://i.postimg.cc/hPzhKC9n/Artboard-2-copy-2.png);">
<li style="display:block;width:800px;height:auto;list-style:none;box-sizing:border-box;padding:0;margin:50px auto 40px auto;"><p style="display:block;width:80%;height:auto;margin:0 auto;text-align:center;line-height: 200%;font-size:2.500rem;color:#DDA0DD."> TEXT OVER IMAGE </p></li>
(sometimes the image is a square and other times it’s perfect) how I do to make it fixed width at 805 pixels ?
where is the error?
thank you.
<ul id="main" style="display:block;width:60%;height:500px;min-width:500px;font-weight:normal;list-style:none;box-sizing:border-box;background-color:#066;background-image: url(https://i.postimg.cc/hPzhKC9n/Artboard-2-copy-2.png);">
<li style="display:block;width:800px;height:auto;list-style:none;box-sizing:border-box;padding:0;margin:50px auto 40px auto;"><p style="display:block;width:80%;height:auto;margin:0 auto;text-align:center;line-height: 200%;font-size:2.500rem;color:#DDA0DD."> TEXT OVER IMAGE </p></li>