LaurelB Posted June 23, 2021 Posted June 23, 2021 Site URL: https://star-fennel-h9p3.squarespace.com/ Hey! I have a section that is multicolored. It's perfect on mobile and desktop. But I want to change it to a single color on tablet only. Here is my current css: [data-section-id="60b93ddcc8f89f0d0d45b26e"] .section-background {background: linear-gradient(270deg, #DFCCBE 500px, #F8F5F2 80px);} My question is, how do I add tablet parameters? ie: @media screen and (max-width:1024px) and (min-width:768px) I tried this, but of course - got an error @media screen and (max-width:1024px) and (min-width:768px) [data-section-id="60b93ddcc8f89f0d0d45b26e"] .section-background {background-color: #DFCCBE;} Site: https://star-fennel-h9p3.squarespace.com/ Password: website2021
Wolfsilon Posted June 23, 2021 Posted June 23, 2021 Hello, You're incredibly close with the code you shared to having a working solution. The reason it isn't working is because there are no opening and closing "{}" following the code for your @media screen query, so the fix is simple. @media screen and (max-width:1024px) and (min-width:768px) { [data-section-id="60b93ddcc8f89f0d0d45b26e"] .section-background {background-color: #DFCCBE;}} Hope this helps! -Dan
LaurelB Posted June 23, 2021 Author Posted June 23, 2021 Thanks @Wolfsilon! But for some reason it still didn't work to change the background to a single color! Any ideas? I tried adding !important; but still nothing! -L
tuanphan Posted June 24, 2021 Posted June 24, 2021 11 hours ago, LaurelB said: Thanks @Wolfsilon! But for some reason it still didn't work to change the background to a single color! Any ideas? I tried adding !important; but still nothing! -L Hi. Where is this section on homepage? 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!)
creedon Posted June 24, 2021 Posted June 24, 2021 Replace the property background-color with background. Let us know how it goes. 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.
LaurelB Posted June 24, 2021 Author Posted June 24, 2021 PERFECT! that worked @creedon thanks both of you! @creedon @Wolfsilon creedon 1
twostudios Posted June 17 Posted June 17 @tuanphan : I am trying to add a descriptor below a category one ONE shop page but am having alignment issues on both desktop and mobile. Can you please take a look at this for me? Thanks so much!
twostudios Posted June 17 Posted June 17 I am trying to add a descriptor below a category one ONE shop page but am having alignment issues on both desktop and mobile. Can you please take a look at this for me? Thanks so much!
creedon Posted June 17 Posted June 17 5 hours ago, twostudios said: I am trying to add a descriptor below a category one ONE shop page but am having alignment issues on both desktop and mobile. Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us. A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. You may find How to post a forum question post useful. We can then take a look at your issue. 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment