Jump to content

Adjust logo height to be taller than header (7.1)

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Views 408
  • Created
  • Last Reply

Top Posters In This Topic

17 hours ago, tuanphan said:

Add to Design > Custom CSS

header#header img {
    position: relative;
    bottom: -50px;
}

 

This gets the logo to drop below the header, but it does not allow me to adjust the logo size relative to the size of the header. I need the header to be the shortest height possible, and the logo to be large enough to be legible.

Link to comment
  • Solution

Add this new code

.header-announcement-bar-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0px !important;
}
header#header img {
    max-height: 150px;
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%,-50%);
}
header#header {
    margin-top: 25px;
}

 

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

Add this new code

.header-announcement-bar-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0px !important;
}
header#header img {
    max-height: 150px;
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%,-50%);
}
header#header {
    margin-top: 25px;
}

 

I was able to get this to work! Thank you!

What I used:

.header-announcement-bar-wrapper {
    padding-top: 10px !important;
    padding-bottom: 0px !important;
}
header#header img {
    max-height: 150px;
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%,-50%);
      margin-top: 33px;
}
header#header {
    margin-top: 0px;
}

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.