- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2025 07:37 AM
Hi everyone, in the backend I see the PNG image inserted into the KB article displayed full-width.
Is there any way to achieve this on the portal?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2025 05:06 AM
Hello @RaViCZ ,
Thanks. There is a typo: it's "max-width", not "max-widt". Once you fix this it will work.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2025 08:43 AM - edited ‎05-20-2025 08:55 AM
Hello @RaViCZ ,
Can you please provide a screen shot that illustrates what you mean?
By default the pictures in a Knowledge Article are in fact shown in their full width in Employee Center, see below. Please note that, if the width is larger than the widget then you have to use the horizontal scroll bars to see the entire picture:
Or are you asking how the picture can be scaled to the width of the portal widget?
In that case you would have to edit the HTML code of the KB Article, like this:
The attribute you need to add is:
style="max-width: 100%;"
Result:
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2025 02:07 AM
Hello Robert,
thanks for the reply.
"if the width is larger than the widget, then you have to use the horizontal scroll bars" - This is exactly what I don't want :-).
I would like to display it across the entire window, like it is possible in the backend.
Radek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2025 05:15 AM
Hello @RaViCZ ,
Did you try the scaling solution I provided in the second half of my post? That's the only way to show such a large picture in its entirety.
The Service Portal widget for rendering KB Articles has a fixed maximum width, so it's impossible to show a picture that is wider than that without scrolling. And even if that widget was as wide as your screen, as soon as there's a picture wider than that you'd have to scroll again.
Also, I noticed that the particular picture in your article consists of many small individual pictures. So as a practical solution you could add those smaller pictures to the article and arrange them to be underneath each other.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2025 06:19 AM
Yes I tried the scaling method, it didn’t work. Seems that it’s limited by the widget’s max width.
The article contains only one image.
Actually, when I click the image, it shows full size, as I want, it would be solved if that could happen automatically.
Radek