Dtcforce Posted June 15, 2020 Share Posted June 15, 2020 Site URL: http://dtcforce.com Hi, I have built my website on squarespace 7.1. For some reason the images on the homepage the margin is going beyond the screen because of this the screen in mobile is moving to the right when navigating Attached is an image for reference Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 35 minutes ago, Dtcforce said: Site URL: http://dtcforce.com Hi, I have built my website on squarespace 7.1. For some reason the images on the homepage the margin is going beyond the screen because of this the screen in mobile is moving to the right when navigating Attached is an image for reference I tried to fix it https://prnt.sc/szxjxk <style> #yui_3_17_2_1_1592209946118_113 .image-block { left: 0; margin: 0 auto; } </style> BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Dtcforce Posted June 15, 2020 Author Share Posted June 15, 2020 10 minutes ago, bangank36 said: <style> #yui_3_17_2_1_1592209946118_113 .image-block { left: 0; margin: 0 auto; } </style> Where do I add this? In custom CSS I have added this for the implementation image: #block-yui_3_17_2_1_1589030188217_12991{width: 100px; position: relative; left:85px; @media only screen and (max-width:950px){position: relative; left:100px}} Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 8 minutes ago, Dtcforce said: Where do I add this? In custom CSS I have added this for the implementation image: #block-yui_3_17_2_1_1589030188217_12991{width: 100px; position: relative; left:85px; @media only screen and (max-width:950px){position: relative; left:100px}} In the custom css, if you want to specifically place it smaller screen, then replace the code of yours with <style> #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #yui_3_17_2_1_1592209946118_113 .image-block { left: 0; margin: 0 auto; } } </style> BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 10 minutes ago, Dtcforce said: Where do I add this? In custom CSS I have added this for the implementation image: #block-yui_3_17_2_1_1589030188217_12991{width: 100px; position: relative; left:85px; @media only screen and (max-width:950px){position: relative; left:100px}} If you are already in custom css code section, you can remove the style tags BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Dtcforce Posted June 15, 2020 Author Share Posted June 15, 2020 9 minutes ago, bangank36 said: In the custom css, if you want to specifically place it smaller screen, then replace the code of yours with <style> #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #yui_3_17_2_1_1592209946118_113 .image-block { left: 0; margin: 0 auto; } } </style> Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 25 minutes ago, Dtcforce said: Sorry I picked thr wrong id #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #page-section-5ee19a70b8f78712728f4917 .image-block { left: 0 !important; margin: 0 auto; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Dtcforce Posted June 15, 2020 Author Share Posted June 15, 2020 17 minutes ago, bangank36 said: Sorry I picked thr wrong id #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #page-section-5ee19a70b8f78712728f4917 .image-block { left: 0 !important; margin: 0 auto; } } can apply this to the whole mobile screen page? Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 6 minutes ago, Dtcforce said: I used the max-width: 768px, you can change it per your mobile screen settings BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Dtcforce Posted June 15, 2020 Author Share Posted June 15, 2020 6 minutes ago, bangank36 said: I used the max-width: 768px, you can change it per your mobile screen settings No I meant how can I apply this margin settings to every mobile image Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 I suggest you find the section id via inspector https://prnt.sc/szzfql BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
tuanphan Posted June 15, 2020 Share Posted June 15, 2020 8 minutes ago, bangank36 said: I suggest you find the section id via inspector https://prnt.sc/szzfql I wonder how you can take screenshot Chrome Dev? I also use the Lightshot extension, and it seems that it can't capture Dev Tools Thank you. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 10 minutes ago, tuanphan said: I wonder how you can take screenshot Chrome Dev? I also use the Lightshot extension, and it seems that it can't capture Dev Tools Thank you. I used Lightshot app BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Dtcforce Posted June 15, 2020 Author Share Posted June 15, 2020 Sorry I picked thr wrong id #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #page-section-5ee19a70b8f78712728f4917 .image-block { left: 0 !important; margin: 0 auto; } } Thank You bangank36 🙂 Link to comment
Beyondspace Posted June 15, 2020 Share Posted June 15, 2020 2 minutes ago, Dtcforce said: Sorry I picked thr wrong id #block-yui_3_17_2_1_1589030188217_12991 { width: 100px; position: relative; left:85px; } @media only screen and (max-width: 768px) { #page-section-5ee19a70b8f78712728f4917 .image-block { left: 0 !important; margin: 0 auto; } } Thank You bangank36 🙂 You're welcome, appriciate if the answer is marked as solved BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.