How to add a link to an image and wrap text on the left sideSOLVE
Jun 3, 2019 1:29 PM
I added an image to a website page and wanted to wrap the text to the left and also make the image linkable.
However, when I try to make the image linkable the formatting breaks and the text is no longer wrapped to the left . Instead my image shifts to the middle of the paragraph and the looks out of place.
Image with no link added :
Image with link added:
Any help is gretaly appreaciated thanks in advance!
Solved! Go to Solution.
Jun 5, 2019 8:18 AM
Great! So I had a look and the issue seems to be that there's a general "inline-block" display applied to all links (a elements) on your site:
I'd be reluctant to update that as it could affect other parts of your website but, for this particular instance, click on Advanced > Source Code at the top of your Rich Text editor, in the source code (the HTML for your post), find this line for the link around your image:
<a href="https://www.aventri.com/offers/how-to-manage-your-room-block-avoid-attrition" rel=" noopener" target="_blank">
and then add in
just before the closing >, like this:
<a href="https://www.aventri.com/offers/how-to-manage-your-room-block-avoid-attrition" rel=" noopener" target="_blank" style="display: inline;">
I hope that helps!
Stephanie O'Gay Garcia
HubSpot CMS Design & Development
If this helped, please mark it as the solution to your question, thanks!