On 2022-05-28 15:24, Helmut Richter wrote:
> I want to place an <img> into a <div>-box with a certain width and want it
> as big as possible so that it fits into the box. The obvious syntax
> <img src="..." width="100%"> works fine with Firefox but the syntax is not
> correct: width can only specified as number of pixels.
Use CSS, where 100% is syntactically valid for width:
<img src="..." style="width: 100%;">