Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
BMS

custom background colour with #id selector not working

Question

I would like this page [ https://www.barbaramacias.com/paros2020 ] to have a different background colour than the rest of the site [ https://www.barbaramacias.com/ ] . Because the template only allows for one colour, I thought I could solve it by adding custom CSS. The html element has an id and a class. When I change the background colour in Chrome Inspector, it works but when I add the same line to the Custom CSS window in Squarespace, it does not work. I tried using these three versions of the CSS selector (just the id, id +class, tag+id+class) but none seem to work:
 

#yui_3_17_2_1_1578652083284_68 { background-color:#ffffff;}

#yui_3_17_2_1_1578652083284_68.Main.Main--page { background-color:#ffffff;}

main#yui_3_17_2_1_1578652083284_68.Main.Main--page { background-color:#ffffff;}

What am I missing? Thanks!

 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

#yui will change if you reload the plage

so don't use #yui

Use Page ID. See how to find Page ID.

If you use Business Plan or higher, remove the id, and wrap css in style and add to Page Header

<style>

css here

</style>


Send me a message if you have any questions (free 10 minutes).

4000+ free code: Adirondack - Avenue - Brine - Bedford - and more (all 7.0 template & 7.1)

Useful guide: How to share url (trial plan) - 2 languages site - 3 languages

Plugins: Product Enquiry Form - Product Color/Image Swatch VariantLightbox Anything

Learn CSS Basic: Treehouse - W3Schools - Flexbox

Other groups: SS Customization Resource Group - SS CSS Support - SS Community

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...