Issue
- The image in my article looks weird when I view it on a smaller screen
- How do I get images in articles to resize based on the screen size?
- How to I make the image in my articles responsive?
Environment
Resolution
To get your images to automatically adjust to fit the screen size a reader is looking at the article on, you need to:
- Remove any Width and Height info from the Image Properties window
- Add the responsive image HTML to the image in the source code of the article
Step 1. Remove any Width and Height info from the Image Properties window
- Go to your article and click Edit Article.
- In the article Body, double click the image.
- Remove any info from the Width and Height fields.
- Click OK.
Step 2. Add the responsive image HTML to the image in the source code of the article
- Go to your article and click Edit Article.
- Click <> Source.
- Find the line of code for your image.
- Using CTRL+F and searching for "img" can help you locate it quickly.
- After img, type class="responsive"
- Click Save as Draft to test your update.
- Once you've confirmed the image now automatically resizes, Approve This Revision.
Here's an example of what the code will look like with the responsive HTML:
<p><img alt="" class="responsive" src="https://yourclientportalname.teamdynamix.com/TDPortal/Images/Viewer?fileName=123" style="border-width: 1px; border-style: solid;" /></p>