Nataliandrea Posted March 22, 2022 Share Posted March 22, 2022 Site URL: https://lynx-lanternfish-zr6s.squarespace.com/config/design/custom-css Hi, i would like to add outlines to my images on my website please help Link to comment
tuanphan Posted March 24, 2022 Share Posted March 24, 2022 The site is private. Can you setup password & share url again? We can help easier 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
derricksrandomviews Posted March 27, 2022 Share Posted March 27, 2022 (edited) If you want a border around all image blocks this code shoud do it and here is a guide as well for a couple of thing you can do to image blocks: https://www.baileyeidahl.com/blog/how-to-add-a-background-or-border-to-an-image-block-in-squarespace img { border: 5px solid black; } Edited March 27, 2022 by derricksrandomviews Link to comment
creedon Posted March 28, 2022 Share Posted March 28, 2022 I discovered that putting a border around images is a bit more involved than adding a ruleset for img tags. Some of the img tags need special handling. You need to add your effect to a parent wrapper element to get the proper effect. I've tried to address a wide variety of use cases with my Site Wide Image Borders code. Please see the following. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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