Jump to content

Header height on phone

Recommended Posts

Site URL: https://www.newweather.se/hem1

Hi, I'm using the Pacific template and have a thin banner image on top where the navigation is displayed in desktop mode. However, when I switch to phone mode the image becomes full height, cropping the edges instead of the height. I would like to make it smaller also on the phone, or just taking it away on the phone. I've searched a lot on this and found some tips, but nothing seems to work.

Can anyone help me?

Password is: 1719

Skärmavbild 2021-02-26 kl. 14.42.30.png

Skärmavbild 2021-02-26 kl. 14.42.10.png

Link to comment
  • Replies 7
  • Views 391
  • Created
  • Last Reply
39 minutes ago, brandahemman said:

Site URL: https://www.newweather.se/hem1

Hi, I'm using the Pacific template and have a thin banner image on top where the navigation is displayed in desktop mode. However, when I switch to phone mode the image becomes full height, cropping the edges instead of the height. I would like to make it smaller also on the phone, or just taking it away on the phone. I've searched a lot on this and found some tips, but nothing seems to work.

Can anyone help me?

Password is: 1719

Skärmavbild 2021-02-26 kl. 14.42.30.png

Skärmavbild 2021-02-26 kl. 14.42.10.png

Could you try to reduce padding of banner

@media only screen and (max-width: 640px)
.banner-thumbnail-wrapper {
    padding: 10px 0;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
29 minutes ago, bangank36 said:

Could you try to reduce padding of banner


@media only screen and (max-width: 640px)
.banner-thumbnail-wrapper {
    padding: 10px 0;
}

 

You're a wizzard! I found the problem, a missing ";" after 640px). Now it works great! Thanks a lot!

@media only screen and (max-width: 640px); .banner-thumbnail-wrapper { padding: 10px 0; }

Link to comment
9 hours ago, brandahemman said:

Ooops, I was a bit too quick. It works great as long as I hace the CSS open. When I switch to pages it goes back again.

Try

@media only screen and (max-width: 640px) {
.banner-thumbnail-wrapper {
    padding: 10px 0;
}}

It's a typo when copy

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.