Jump to content

Changing padding for header on tablet?

Go to solution Solved by Web_Solutions,

Recommended Posts

Hello! I'm running into an issue where the header of my website seems like it has different padding than the rest of the site, but only when I view it on tablet (in my case iPad but I presume this would be the case on all tablets). The overall site style is a padding of vw 3, but the header looks like it has a lot more padding on tablet view. I've attached two photos below to show this. Any idea how to force the header to be in alignment with the rest of the site? Thanks!

website: andreakloehn.com 

password: flute43

IMG_0061DD65FC15-1.jpeg

IMG_311EE5AF00C8-1.jpeg

Link to comment
  • Solution
3 hours ago, Andrea_K said:

Hello! I'm running into an issue where the header of my website seems like it has different padding than the rest of the site, but only when I view it on tablet (in my case iPad but I presume this would be the case on all tablets). The overall site style is a padding of vw 3, but the header looks like it has a lot more padding on tablet view. I've attached two photos below to show this. Any idea how to force the header to be in alignment with the rest of the site? Thanks!

website: andreakloehn.com 

password: flute43

IMG_0061DD65FC15-1.jpeg

IMG_311EE5AF00C8-1.jpeg

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

@media screen and (max-width: 768px) and (min-width: 500px) {
  .header .header-announcement-bar-wrapper {
    padding-top: 3vw !important;
    padding-bottom: 3vw !important;
  }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • 4 months later...

Hello there, I'm facing an issue with my header on tablet. The button on the right is cropped. I would need all navigation and buttons to be closer to the  logo on tablet only. 

I have tried the code above with padding-left and padding-right but it didn't work. Any help would be great ! 

 

Thanks. 

 

 

Capture d’écran 2024-04-06 à 16.04.49.png

Link to comment
On 4/6/2024 at 9:08 PM, HeloiseStudioJone said:

Hello there, I'm facing an issue with my header on tablet. The button on the right is cropped. I would need all navigation and buttons to be closer to the  logo on tablet only. 

I have tried the code above with padding-left and padding-right but it didn't work. Any help would be great ! 

 

Thanks. 

 

 

Capture d’écran 2024-04-06 à 16.04.49.png

What is site url?

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
On 4/15/2024 at 9:05 PM, HeloiseStudioJone said:

Hi @tuanphan The second button should appear on tablet on this format as well so I still have a padding issue !

You can use this code to Website > Website Tools > Custom CSS to fix problem

div.header-actions-action--cta {
    overflow: visible !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

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.