Jump to content

Logo in Header Acting up on Mobile

Recommended Posts

Posted

The logo on my homepage displays well on desktop but on mobile it drops way down on the page and is really small. Is there a way to anchor the logo's position and size when viewed on a mobile device?

Here's the script I'm using:

header-title-logo a {
position: absolute;
bottom: -105px;
z-index: 9999;
}
/* Fix logo overlap */
.header-title-logo {
    width: 270px;
}
/* header shadow */
header#header {
box-shadow: 3px 4px 5px rgba(0,0,0,0.5);
}

  • Replies 4
  • Views 243
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 5/25/2022 at 2:51 AM, MattyT208 said:

Don't remove any code in your current code. Add to Design > Custom CSS

@media screen and (max-width:767px) {
.header-title-logo a {
    bottom: 0;
}
.header-title-logo img {
    max-height: 100px;
}}

 

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

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.