Jump to content

CSS changes only showing in customizer but not on live site

Recommended Posts

Hi, my CSS is also not working when I set it live on my site. Currently im trying to reduce the padding on the sides of my nav and section header. It looks fine in the CSS editor but not on the live site. my site is https://greygray.ca/ pw: shadowwork. Please let me know how I can fix this.

Screenshot2023-12-30at1_19_13AM.thumb.png.65fa80c3dfe3f2fb4891e6f7d68b8764.png

above: view in CSS editor [Ideal view]

Screenshot2023-12-30at1_19_52AM.thumb.png.c7a72bf6fddee5510978c5441daf21e1.png

vs how it looks live. 

here is the code I used: 

.header .header-announcement-bar-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2vw!important;
    padding-bottom: 2vw!important;
    padding-left: 4vw;
    padding-right: 4vw;
    pointer-events: auto
}
.section-border {
    position: absolute;
    top: calc(-1 * var(--previous-section-divider-offset, 0px));
    right: -2vw!important;
    bottom: 0;
    left: -2vw!important;
}

Link to comment
  • Replies 2
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

46 minutes ago, Nicoleplee said:

Hi, my CSS is also not working when I set it live on my site. Currently im trying to reduce the padding on the sides of my nav and section header. It looks fine in the CSS editor but not on the live site. my site is https://greygray.ca/ pw: shadowwork. Please let me know how I can fix this.

Screenshot2023-12-30at1_19_13AM.thumb.png.65fa80c3dfe3f2fb4891e6f7d68b8764.png

above: view in CSS editor [Ideal view]

Screenshot2023-12-30at1_19_52AM.thumb.png.c7a72bf6fddee5510978c5441daf21e1.png

vs how it looks live. 

here is the code I used: 

.header .header-announcement-bar-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2vw!important;
    padding-bottom: 2vw!important;
    padding-left: 4vw;
    padding-right: 4vw;
    pointer-events: auto
}
.section-border {
    position: absolute;
    top: calc(-1 * var(--previous-section-divider-offset, 0px));
    right: -2vw!important;
    bottom: 0;
    left: -2vw!important;
}

I see you made some coding errors in the custom CSS section. That's why it not working. Can you share your all code? Then I'll fix it.

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Thank you! This is all the code I used so far. Still working on the website. Can you tell me what errors I made so I can fix them as I continue working on my site?

 

.header .header-announcement-bar-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2vw!important;
    padding-bottom: 2vw!important;
    padding-left: 4vw;
    padding-right: 4vw;
    pointer-events: auto
}
.section-border {
    position: absolute;
    top: calc(-1 * var(--previous-section-divider-offset, 0px));
    right: -2vw!important;
    bottom: 0;
    left: -2vw!important;
}

 

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.