Brent_Dickens Posted July 27, 2021 Share Posted July 27, 2021 Site URL: https://plat4m.squarespace.com/ I am struggling to get some custom code working that creates a drop shadow on Card layout images. I had to apply the css to the .intrinsic class otherwise it seems to be cut off. The problem is on Tablet view and some smaller laptop sizes it doesn't remain the same size as the image and doesn't work. I have attached screens to demonstrate. I need to somehow get the box-shadow working on the img tag if possible. The CSS is below: .image-block-outer-wrapper.design-layout-card .intrinsic { box-shadow: 0px 20px 20px 0px rgba(15,35,98,0.75)!important; border-radius: 3px!important; } Site can be viewed here: https://plat4m.squarespace.com/ Any advice would be much appreciated 🙂 Link to comment
tuanphan Posted July 27, 2021 Share Posted July 27, 2021 4 hours ago, Brent_Dickens said: Site URL: https://plat4m.squarespace.com/ I am struggling to get some custom code working that creates a drop shadow on Card layout images. I had to apply the css to the .intrinsic class otherwise it seems to be cut off. The problem is on Tablet view and some smaller laptop sizes it doesn't remain the same size as the image and doesn't work. I have attached screens to demonstrate. I need to somehow get the box-shadow working on the img tag if possible. The CSS is below: .image-block-outer-wrapper.design-layout-card .intrinsic { box-shadow: 0px 20px 20px 0px rgba(15,35,98,0.75)!important; border-radius: 3px!important; } Site can be viewed here: https://plat4m.squarespace.com/ Any advice would be much appreciated 🙂 Hi. Which page in screenshot? 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
Brent_Dickens Posted July 27, 2021 Author Share Posted July 27, 2021 10 hours ago, tuanphan said: Hi. Which page in screenshot? Our Services Link to comment
tuanphan Posted July 29, 2021 Share Posted July 29, 2021 On 7/28/2021 at 6:06 AM, Brent_Dickens said: Our Services Use this code .design-layout-card .intrinsic { box-shadow: 0px 20px 20px 0px rgba(15,35,98,0.75)!important; border-radius: 3px!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!) Link to comment
Brent_Dickens Posted July 29, 2021 Author Share Posted July 29, 2021 9 minutes ago, tuanphan said: Use this code .design-layout-card .intrinsic { box-shadow: 0px 20px 20px 0px rgba(15,35,98,0.75)!important; border-radius: 3px!important; } Applying the bob-shadow to the .intrinsic class is the issue as this is not always the same size as the image on those tablet sized screens. Link to comment
IgnitePerth Posted July 29, 2021 Share Posted July 29, 2021 Trixy one! intrinsic is the class you need - to solve the sizing add img: Calling the img tag inside intrinsic solves your problem on the home page, but not Our Services. .intrinsic img{ box-shadow: 0px 20px 20px 0px rgba(15,35,98,0.75); } Tuanphan's code is the right selector for Our Services If you find our solution helpful please thumbs up or mark it as the solution! Thank you 🙂 Contact Us for detailed help Common Squarespace Tips Sharing Your Site Link Squarespace web designers in Perth WA. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.