dfeder Posted August 1, 2022 Share Posted August 1, 2022 Site URL: https://www.technologytrainedbyteens.org/new-page-2 Hello, I am trying to change the font of the select elements of the form using custom CSS (in my form, where it says January and 1), but I found a confusing result. When I was using the inspect element to find the class to change, I found this ".sqs-block-form .field-list select". The issue is that CSS classes cannot have a space in it. As it is, when I paste those classes exactly into custom css, it does not work. But, when I had a hyphen in to make it ".field-list-select", and add a hyphen in using inspect element, it works fine. How could I make it so that it is permanently fixed? Thanks for your help. Link to comment
Beyondspace Posted August 1, 2022 Share Posted August 1, 2022 13 minutes ago, dfeder said: Site URL: https://www.technologytrainedbyteens.org/new-page-2 Hello, I am trying to change the font of the select elements of the form using custom CSS (in my form, where it says January and 1), but I found a confusing result. When I was using the inspect element to find the class to change, I found this ".sqs-block-form .field-list select". The issue is that CSS classes cannot have a space in it. As it is, when I paste those classes exactly into custom css, it does not work. But, when I had a hyphen in to make it ".field-list-select", and add a hyphen in using inspect element, it works fine. How could I make it so that it is permanently fixed? Thanks for your help. Which one do you want to target to set style? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
creedon Posted August 1, 2022 Share Posted August 1, 2022 6 minutes ago, dfeder said: I found this ".sqs-block-form .field-list select". The issue is that CSS classes cannot have a space in it. Class names as well as other selector types don't have spaces but selectors do. When constructing a ruleset the selector is a hierarchy that tells the browser how to get to what you want to change. A kind of address if you will, like 1234 SE Any Street. 12 34 SE Any Street doesn't make sense but the former does. CSS Ruleset Terminology CSS selectors 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. Link to comment
dfeder Posted August 1, 2022 Author Share Posted August 1, 2022 12 minutes ago, bangank36 said: Which one do you want to target to set style? .field-list select Link to comment
Beyondspace Posted August 1, 2022 Share Posted August 1, 2022 This is the element when we select the field-list Is it the one you want to target? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
dfeder Posted August 2, 2022 Author Share Posted August 2, 2022 20 minutes ago, bangank36 said: This is the element when we select the field-list Is it the one you want to target? i am trying to change the font of the elements circled in the picture Link to comment
Beyondspace Posted August 3, 2022 Share Posted August 3, 2022 On 8/2/2022 at 7:15 AM, dfeder said: i am trying to change the font of the elements circled in the picture Try adding to Home > Design > Custom Css .form-item.field select { color: blue; } Hope it helps BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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 August 3, 2022 Share Posted August 3, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
dfeder Posted August 3, 2022 Author Share Posted August 3, 2022 12 hours ago, bangank36 said: My testing Thank you so much man! It works now. Sorry for the confusion. Beyondspace 1 Link to comment
Beyondspace Posted August 3, 2022 Share Posted August 3, 2022 Never mind, you good BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Create an account or sign in to comment
You need to be a member in order to leave a comment