Reputation: 19097
I have developed this help system with HelpNDoc but I don’t understand why images end up small and distorted if displayed on a resized browser window on a PC. Link:
http://trucklesoft.co.uk/help/BriefOverview.html#Languages
On small devices like iPad:
My legacy help system which was not created using HelpNDoc:
Legacy link:
https://www.publictalksoftware.co.uk/msa/helponline/source/helpoptionsbriefoverview.htm
Here is the HelpNDoc own help system:
https://www.helpndoc.com/sites/default/files/documentation/html/Styleseditor.html
Their images are scaling correctly! Their max-width
is set to 100%
so that can't be the reason.
I seemed to have manually fixed it - look here:
http://trucklesoft.co.uk/help/Authorization.html
All I have done is remove the image widths and heights. Then it flows nicely.
Upvotes: 0
Views: 211
Reputation: 4066
It looks like your content has changed since you asked the question but from your screenshot, it looks like the image was placed in a table cell. And its CSS rule indicates that it must have a max-width: 100%
meaning that it must fit in its container, no matter its width. If the table cell is resized on a smaller screen, so is the image it contains: that's what is causing the problem.
To fix this, you have multiple options:
Force the table cell to be always a specific size, even on smaller devices:
Remove the max-width: 100%
for this image or all images:
#topic-content img {max-width: none}
Then make sure that you generate your HTML documentation again.
Upvotes: 1
Reputation: 11055
As you have set a map on the image, and the maps are not responsive, you need to use fixed size for image (198px) however bootstrap sets max-width:100%
on all children elements. So if you have a <td>
with small sizes, the image will also resize to its parent 100% width. The conclusion is to set a fixed size for <td>
and width:100%
for image itself:
<td valign="middle" style="padding: 10px;width:198px;">
<p class="rvps4">
<img alt="" style="padding:1px; width:100%" src="lib/MAP_MNU_Options.png" usemap="#57DA0D7BD5934A4491D380D9F8AD74BD">
</p>
</td>
Upvotes: 0
Reputation: 489
Maybe using viewport height and viewport widht will solve the problem. Try that out!
Upvotes: 0