Jump to content

CSS for making mobile footer horizontal

Recommended Posts

Site URL: https://www.gatedminds.com

Hello, I currently have the footer missing when viewing on mobile because I didn't like that the content stacked.

The code I used for that:

@media screen and (max-width:767px) {
  .header-menu-bg.theme-bg--primary {
    background: #000000 !important;
  }
  footer {
    display: none!important;
  }
}

However, now I'd like to show the footer content but display it horizontally instead of the vertical stack. Any ideas?

link: gatedminds.com/contact

pass: gated

Link to comment
  • Replies 2
  • Views 585
  • Created
  • Last Reply

Top Posters In This Topic

On 7/11/2021 at 5:12 PM, abunextdoor said:

Site URL: https://www.gatedminds.com

Hello, I currently have the footer missing when viewing on mobile because I didn't like that the content stacked.

The code I used for that:

@media screen and (max-width:767px) {
  .header-menu-bg.theme-bg--primary {
    background: #000000 !important;
  }
  footer {
    display: none!important;
  }
}

However, now I'd like to show the footer content but display it horizontally instead of the vertical stack. Any ideas?

link: gatedminds.com/contact

pass: gated

Remove the footer display none code & add this to Design > Custom CSS

/* align mobile footer */
@media screen and (max-width:767px) {
div#page-section-60da54efea3bf34cb2f265b1 {
.span-12>.row {
    display: flex;
    align-items: center;
}
.span-12 .span-6:last-child {
    width: 30% !important;
    text-align: right;
}
.span-12 .span-6:first-child {
    width: 70% !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
  • 2 weeks later...

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.