EDL Posted July 22, 2019 Share Posted July 22, 2019 (edited) Is there a way to edit the size of an image that is embedded within a markdown block? Currently I'm trying to created a bulleted "to-do" checklist of many items to show which items have been completed and which are still outstanding. That said, I've successfully added the images to the markdown block by using the reference style code found on the current cheat sheet: https://support.squarespace.com/hc/en-us/articles/206543587-Markdown-cheat-sheet Reference-style: ![alt text][id] [id]: /url/to/img.jpg "Title" However, the images are now significantly way too big for the text. Is there a way to scale down the image size within the markdown block code? Thanks in advance. Edited July 22, 2019 by EDL Link to comment
Sham Posted May 17, 2020 Share Posted May 17, 2020 Hi, I added the code below into the markdown box with my image and it resized for me! <img src="/s/blank.jpg"; img style="height: 20px; width: 20px;"> Change the blank.jpg to your "filename.filetype". Hope that helps! Link to comment
tuanphan Posted May 17, 2020 Share Posted May 17, 2020 You can add Code Block under Markdown Block & use this code to resize image <style> .markdown-block img { width: 20px; height: auto; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Leah007 Posted June 5, 2021 Share Posted June 5, 2021 @tuanphan Is there a way to use this if there is more than one image within a single markdown block? My site url is https://www.sundaymusecreative.com/workinggg and I'm trying to make the two images in the "brand identity" markdown block different sizes Thank you!! Link to comment
tuanphan Posted June 5, 2021 Share Posted June 5, 2021 10 hours ago, Leah007 said: @tuanphan Is there a way to use this if there is more than one image within a single markdown block? My site url is https://www.sundaymusecreative.com/workinggg and I'm trying to make the two images in the "brand identity" markdown block different sizes Thank you!! Can you take screenshot all syntax in the Markdown? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
StudioEvka Posted December 11, 2023 Share Posted December 11, 2023 Hello @tuanphan – long time fan, first time commenter! I've been playing around with this for hours and have finally managed to get my images in line with the text as well as scale them to the size I want. Unfortunately the images align with the baseline of the text and I'd like them to align to the centre (see image attached for my figma design that I'm trying to replicate). URL: https://plane-opossum-nlpb.squarespace.com/ Password: lotsofsnacks Can you help? Link to comment
tuanphan Posted December 13, 2023 Share Posted December 13, 2023 You can add this code to Website Tools (under Not Linked) > Custom CSS div.markdown-block h2 { display: flex; justify-content: center; align-items: center; } How about on mobile? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
StudioEvka Posted December 13, 2023 Share Posted December 13, 2023 Thanks! I will replace the images so they have more space around each logo. Correct - on mobile this all looks a bit crazy! (see attached). I'd like to fix the formatting, as well as bringing the font size down and scale the logos to suit. Link to comment
tuanphan Posted December 15, 2023 Share Posted December 15, 2023 The url doesn't work now. Can you check it again? URL: https://plane-opossum-nlpb.squarespace.com/ Password: lotsofsnacks Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
StudioEvka Posted December 18, 2023 Share Posted December 18, 2023 Hey @tuanphan Had to change it for my client – it is now warpsnacks.squarespace.com Password: lotsofsnacks Link to comment
tuanphan Posted December 20, 2023 Share Posted December 20, 2023 To make text size down, use a style syntax like this (just an example) <h2 style="font-size:10px;">text text text</h2> With mobile, add this code to Website Tools (under Not Linked) > Custom CSS @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1702295595800_79033 h2 { flex-direction: column; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment