ClaireHops Posted February 21 Share Posted February 21 I have a hero section that has a background image and two image blocks sitting on top. One of the smaller image blocks contains an icon and has been placed correctly on desktop and mobile, but as soon as the screen resolution is in between those two sizes it starts floating around in a weird place. Below 600px and above 1200px the placement is fine, but if the screen width is between 600-1200px then it looks strange. Screenshots below. Page is: https://www.hoptroff.com/product/software Password: Test Is there any way (maybe through CSS) that I can solve this? I'd be happy even to just make it disappear between 600-1200px. Mobile: okay Desktop: okay In between size: the icon is floating off by itself Link to comment
NoahSnowdayDesign Posted February 21 Share Posted February 21 Hi ClaireHops, This is Noah from Snowday, nice to meet you! This isn't a Squarespace or code based solution but something that I do a lot when faced with the problem you're facing: have you thought about using a graphic design software to add the icon to the photo exactly how it should be, exporting as a .png, then uploading that new .png where the current photo of the computer is, and deleting the separately uploaded icon altogether? This solution is pretty simple, doesn't require any extra code, and ensures that the icon is exactly where you want it no matter the screen size (because it can't move!). I know it may not be the exact solution you were looking for, but I thought I'd share because this is a strategy that I use for graphics all the time. Let me know if this helps! Noah Olson Web Design, Brand, Marketing ❄️ Snowday Design Link to comment
Solution nick_sh Posted February 21 Solution Share Posted February 21 To remove: @media(min-width: 601px) and (max-width: 1200px) { .fe-block-yui_3_17_2_1_1708083773595_75032 { display: none; } } but maybe use one image as @Snowday suggested Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development Link to comment
ClaireHops Posted March 8 Author Share Posted March 8 @Snowday Hey, thanks for the reply! The laptop has an animated gif in it that I made in AE. I could put the icon over it within the animation, but I kind of like the feeling of layering and motion that exists with the two elements being separate. Link to comment
ClaireHops Posted March 8 Author Share Posted March 8 @nick_sh this worked perfectly, thank you! Link to comment
nick_sh Posted March 10 Share Posted March 10 @ClaireHops Great! Please mark as correct so others can benefit from the answer too — thanks. ClaireHops 1 Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development 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