Jump to content

Blog posts look great on desktop, but are completely re-arranged on mobile. No clue how to fix it

Go to solution Solved by tuanphan,

Recommended Posts

/* Nav menu active link color */
body:not(.tweak-transparent-header) .header-nav-wrapper .header-nav-item--active a {
  color: #337ab7;
}

/* Basic table styling */
table.minimalistGrey {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
table.minimalistGrey td, table.minimalistGrey th {
  padding: 5px 4px;
}
table.minimalistGrey tr:nth-child(odd) {
  background: #d6cfbd;
}

/* Shrink mobile nav menu font */
@media screen and (max-width:767px){
  .header-menu-nav-item a {
      font-size: 1.3rem;
  }
  /*and shrink gmap*/
  .sqs-block-content > iframe {
    width: 330px;
  }
}

/* Attempt always-full-width banner */
  @media screen and (max-width:767px) {
    #page section:first-child {
        min-height: 32vh !important;
          height: 32vh !important;
    }
  }
/* End always-full-width homepage banner attempt*/

Link to comment
On 4/12/2023 at 1:31 PM, CooperLandingFishingGuide said:

/* Nav menu active link color */
body:not(.tweak-transparent-header) .header-nav-wrapper .header-nav-item--active a {
  color: #337ab7;
}

/* Basic table styling */
table.minimalistGrey {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
table.minimalistGrey td, table.minimalistGrey th {
  padding: 5px 4px;
}
table.minimalistGrey tr:nth-child(odd) {
  background: #d6cfbd;
}

/* Shrink mobile nav menu font */
@media screen and (max-width:767px){
  .header-menu-nav-item a {
      font-size: 1.3rem;
  }
  /*and shrink gmap*/
  .sqs-block-content > iframe {
    width: 330px;
  }
}

/* Attempt always-full-width banner */
  @media screen and (max-width:767px) {
    #page section:first-child {
        min-height: 32vh !important;
          height: 32vh !important;
    }
  }
/* End always-full-width homepage banner attempt*/

Change last code

/* Attempt always-full-width banner */
  @media screen and (max-width:767px) {
    #page section:first-child {
        min-height: 32vh !important;
          height: 32vh !important;
    }
  }

to this

/* Attempt always-full-width banner */
  @media screen and (max-width:767px) {
    #page article section:first-child {
        min-height: 32vh !important;
          height: 32vh !important;
    }
  }

 

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!)

Link to comment
  • Solution
On 4/17/2023 at 12:41 AM, CooperLandingFishingGuide said:

Thank you so much for the help, but it appears to be doing the same thing unfortunately 😕

Try change to this new code

@media screen and (max-width: 767px) {
   body:not([class*="type-blog"]) #page article section:first-child {
        min-height:32vh !important;
        height: 32vh !important
    }
}

 

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!)

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.