Describe the bug
When content created using the classic editor is converted to the block editor (Gutenberg), the image will not be responsive. Gutenberg wraps the image using a <p> tag, which causes the issue.
To Reproduce
Steps to reproduce the behavior:
Create a new post using the classic editor.
Convert the post into Block editor.
Check the post image from frontend.
See the non-responsive image issue.
Expected behavior
The image should be responsive for all devices.
Screenshots
Quick Fix:
Adding the following CSS will resolve the issue.
Describe the bug When content created using the classic editor is converted to the block editor (Gutenberg), the image will not be responsive. Gutenberg wraps the image using a
<p>
tag, which causes the issue.To Reproduce Steps to reproduce the behavior:
Expected behavior The image should be responsive for all devices.
Screenshots
Quick Fix: Adding the following CSS will resolve the issue.
Final Output: