msollami Posted August 3, 2019 Posted August 3, 2019 In my blog post excerpts, all the thumbnails are squares: I'd like to tweak them in the following ways: Change these into circles Give them drop shadows So the css is something like this: img { border-radius: 50%; width: 150px; -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); } I just don't know the proper selector to give so that it will only affect the blog thumbnails and not all images. Also, if possible... is there any way to make them smaller and scale better with page resizes? They're kind of clunky at the moment, e.g. sometimes thumbnails are way too big for the text at a certain zoom!
tuanphan Posted August 3, 2019 Posted August 3, 2019 @msollami try this code. If it doesn't work, please share url to check exact code. .collection-type-blog.view-list article img { border-radius: 50%; width: 150px; -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); } 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!)
msollami Posted August 3, 2019 Author Posted August 3, 2019 Thanks @tuanphan, it almost works! Here's the link with your css: https://mikesollami.squarespace.com/ideas I think your code needs a small edit, because now the shadow gets cutoff in a square and some of the images are stretched: More examples from https://mikesollami.squarespace.com/code:
tuanphan Posted August 3, 2019 Posted August 3, 2019 @msollami .collection-type-blog.view-list article img { border-radius: 50%; -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); left: 0 !important; width: 100% !important; height: 100% !important; } .view-list article .excerpt-thumb .intrinsic .excerpt-image { display: block; height: 100%; overflow: unset !important; } 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!)
msollami Posted August 3, 2019 Author Posted August 3, 2019 Almost there, the only issues left is that the images aspect ratios are changed: And I'd like to avoid the restyling for the one timeline post above, where it is meant to be a full width image...
tuanphan Posted August 3, 2019 Posted August 3, 2019 @msollami YOu can remove width:100% height:100% and insert width:150px again :-D 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!)
msollami Posted August 3, 2019 Author Posted August 3, 2019 Ok, @tuanphan but using this code: /* CUSTOM CSS */ .collection-type-blog.view-list article img { border-radius: 50%; -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); left: 0 !important; height:150px; width:150px; } .view-list article .excerpt-thumb .intrinsic .excerpt-image { display: block; width:150px; height:150px; overflow: unset !important; } Still gives these overflow issues:
msollami Posted August 3, 2019 Author Posted August 3, 2019 @tuanphan I tried removing the width:100% height:100% and inserting width:150px. But is there a way to avoid the overflow issue I'm showing below:
tuanphan Posted August 3, 2019 Posted August 3, 2019 /* CUSTOM CSS */ .collection-type-blog.view-list article img { border-radius: 50%; -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); left: 0 !important; height:100% !important; width:100% !important; } .view-list article .excerpt-thumb .intrinsic .excerpt-image { display: block; width:150px; height:150px; overflow: unset !important; } 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.