Jump to content

Vertically center align footer logo with menu text

Recommended Posts

I was able to vertically center the logo and text with this code:

section[data-section-id="623135206e234714222033f9"] .row {
  display: flex;
  align-items: center;
  justify-content: center;
}

But now the logo is hiding on mobile view, how can I solve that?

Link to comment
On 3/16/2022 at 9:48 AM, Maritu said:

I was able to vertically center the logo and text with this code:

section[data-section-id="623135206e234714222033f9"] .row {
  display: flex;
  align-items: center;
  justify-content: center;
}

But now the logo is hiding on mobile view, how can I solve that?

The logo is fine here. Did you solve it?

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
13 hours ago, tuanphan said:

The logo is fine here. Did you solve it?

HI! Thanks for replying. Yes I solved the logo problem because I created 2 sections one for mobile and another one for desktop. 

In case someone comes across this topic, you can hide a desktop section with this code:

@media only screen and (max-width:767px) {
section[data-section-id="Your Section ID here"]
{display:none}
}

And you can hide a mobile section with this code:

@media screen and (min-width: 768px) {
section[data-section-id=“Your Section ID here”] {
 display:none !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.