Jump to content

Leanie

Circle Member
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Leanie

  1. 3 minutes ago, paul2009 said:

    Check the parent element. If it has an overflow property set or has no height set then the sticky element won't have any area to stick to when scrolling. 

    @paul2009 Thanks, I managed to get it to work, the only issue is that it's sticking to the left side of the site and I need it on the right with a bit of padding. Below is the code that ended up working to get it to this point

    @media screen and (min-width:768px) {
    .fe-block.fe-block-yui_3_17_2_1_1668681761990_18061 {
        position: fixed;
        top: 300; 
        position: -webkit-sticky;
        z-index: 999;
    }
    }

     

    Screenshot 2022-11-17 at 13.23.36.png

  2. @semigrownkid @tuanphan have you managed to figure this out?

    I have the same issue, trying to make the block in the screenshot sticky so it appears on the entire site as you scroll down.

    Tried the below code but it does not seem to work

    @media screen and (min-width:768px) {
    .fe-block.fe-block-yui_3_17_2_1_1668681761990_18061 {
        position: sticky;
        top: 0;
        position: -webkit-sticky;
        z-index: 999;
    }
    }

     

    Screenshot 2022-11-17 at 13.05.24.png

    Screenshot 2022-11-17 at 13.07.35.png

  3. Hi,  has anyone solved this? I am looking to do a fixed navigation on the right like this

    https://www.amazonicorestaurant.com/london/#top

    @tuanphan I found this code, which ads the navigation to the left and turns the text 90 degrees,

    but I want the text to remain horizontal but on the right side of the site as per the example I sent

    // Vertical Navigation //
    
    .header-nav-list {
      width: 135vh !important;
      padding: 25px;
      background: #000000;
      position: fixed;
      -webkit-transform:rotate(-90deg)translateX(-85%);
      -webkit-transform-origin: top left;
      left: 0px;
      top: 0px;
      text-align: center;
      z-index: 999;
    }

     

  4. Hi There,
    I have quite a bit of CSS code on my site and everything worked fine and then all of a sudden none of it shows up on my site. Here is the code:

    //TOP NAVIGATION//
    .header-nav-item a:hover {
        font-weight: 500!important;
    }
    
    //Drop Down Navigation//
    .header-nav-folder-content{background-color:#a4c6ab!important;
    text-align:left!important;
      font-size: 15px;
    }
    .header-nav-folder-content a {
    padding-bottom:.1rem!important;
    padding-top:.3rem!important;}
    
    .header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item:hover a {color: #ffffff !important;}
    
    //Drop Down Navigation MOBILE//
    
    @media only screen and (max-width: 640px)
    {
    .header-menu-nav-folder-content {
      font-size: 10px!important;
      text-align:left!important;
      padding-left:.5rem!important;}
    }
    
    //Above the fold//
    [data-section-id="618e31365856d72ef4181f1f"] .content-wrapper {
        padding-top: 15px !important;
        padding-bottom: 5px !important;
        padding-right: 0px !important;
    }
    
    
    //2nd home page section//
    #block-80093575694f29df0263
    {
    background: #ede9e3;
    padding: 40px;
    text-align: left;
    }
    
    #block-yui_3_17_2_1_1643617675182_9684
    {
    background: #ede9e3;
    padding: 40px;
    text-align: left;
    }
    [data-section-id="61f7a0e715eb135ee257ac59"
    .content-wrapper {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    
    //LOCATION SOLUTION CARDS//
    [data-section-id="61a39fe6dfd0aa67845aaf2d"]{
      @media screen and (min-width:768px)}
      .design-layout-card .intrinsic {
        width: 15% !important;
    }
    
    
    
    //LOCATION HEADER TEXT BLOCK WEST  
    #block-yui_3_17_2_1_1637496431053_6696
    {
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    //LOCATION HEADER TEXT BLOCK FIRESTATION 
    #block-7dcbc9ca22b6716b2273
    {
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    //LOCATION HEADER TEXT BLOCK  BANK  
    #block-c68cbb8d0871d3100486{
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    //LOCATION HEADER BLOCK KLOOF
    #block-2894f80e8f48f864f644{
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    //LOCATION HEADER TEXT BLOCK WATERSHED  
    #block-41626d245953d6ac62fe{
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    //LOCATION HEADER TEXT BLOCK TABAKHUIS  
    #block-3d7b6632ad2b0e1838f2{
    background: #d67347;
    padding: 40px;
    text-align: center;
    }
    
    //FORM FIELDS//
    .field-element {
        border-left: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: 1px solid !important;
    border-color:#42454e !important;
      background: none !important;
    }
    .form-wrapper .field-list .field select {
        padding: 15px;
        border-radius: 0px;
        width: 100%;
      border-left: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
      font-color:#59a370 !important
    }
    
    //HIDE PRICING TABLE FROM MOBILE/
    @media screen and (max-width:767px) {
    	[data-section-id="61f0f4383f658266e84fa2f2"] {
    		display: none;
    	}
    }
    
    //HIDE ACCORDIAN TABLE FROM DESKTOP/
    @media screen and (min-width:768px) {
    	[data-section-id="61f1440ab05c682781de7b17"] {
    		display: none;
    	}
    }
    /* accordion title background */
    .sqs-block-accordion .accordion-item__title-wrapper {
        background-color: #b3d0b9;
    }
    /* accordion content background */
    .sqs-block-accordion .accordion-item__dropdown--open {
        background-color: white;
    }
    
    #block-8bc4c71a67e281379f68
    {padding: 0px;}
    
    [data-section-id="61f0f4ea7f98de524c5ee3d0"].content-wrapper {
        padding-right: 0px !important;
    }

    Site: 
    https://dory-antelope-3w8g.squarespace.com
    Password: W172021

    @tuanphan 

  5. @tuanphan I have implemented this code but now my text width seems to be very small, I would like it to extend a bit further on the page. Screenshot attached for reference

    //LOCATION SOLUTION CARDS//
    [data-section-id="61a39fe6dfd0aa67845aaf2d"]{
    @media screen and (min-width:768px){
      .design-layout-card .intrinsic {
        width: 10% !important;
    }
    }
    }
    
    @media screen and (min-width:768px){
    .image-card.sqs-dynamic-text-container {
     width: 90% !important;
          position: relative !important;
        left: -50% !important;
    }
    }

     

    Screenshot 2021-11-30 at 16.33.28.png

×
×
  • 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.