Jump to content

Fixing Mobile/Tablet views for an H1 text box

Recommended Posts

Site URL: https://perklending.com

I am looking to fix the first section on my site's homepage - in regards to the mobile and tablet versions. There's an H1 title next to 3 image blocks. It looks great on desktop, but not so much on tablet.  The h1 text box font size is just way too large when the screen width is smaller. Also, because the font is so large, the words wrap. When the screen width shrinks, I'd like the H1 text box font to shrink accordingly, that way there's never a screen width where the H1 text is broken up (see attached photo for example -tabletprob1). Having such a large font not only causes the words to wrap but leaves a significant amount of white space underneath the photos (because the h1 text box is so large). 

 

I have coded that when the screen width gets to a certain point, to make the 3 image blocks disappear entirely. That code is below. The tricky part is that there is a  point where the below code kicks in, and the image blocks no longer display, BUT the H1 text box does not adjust to take up the full screen. It looks terrible (see attached tabletproblem2). Eventually, the H1 text box does adjust to take up the entire width of the screen and looks great. 

 

To recap, the screen width is causing a 2-part problem I'd love some help with fixing. Part 1 is that the H1 text box font size is just way too big on smaller screens. Part 2 is that once the code below prompts the photos to disappear, the H1 text box is not currently adjusting to take up the full screen.

 

Thank you for all assistance!

PASSWORD FOR SITE: hello

 

 

//HOMEPAGE MOBILE RESIZING
//Header photos title 1,2,3
@media only screen and (max-width: 905px) {
  #block-yui_3_17_2_1_1625930377608_39055 {
    display: none;
  }
}

@media only screen and (max-width: 905px) {
  #block-yui_3_17_2_1_1625930377608_40459 {
    display: none;
  }
}

@media only screen and (max-width: 905px) {
  #block-yui_3_17_2_1_1625930377608_29799 {
    display: none;
  }
}

tabletproblem2.PNG

tabletprob1.PNG

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Do you need to help to fix these?

Site URL – https://www.perklending.com/

1. (Desktop – Footer) Text is cut into 2 lines. Increase text width?

https://www.perklending.com/

perklending.com-01-min.png

2. (Tablet – Homepage) Increase text width?

https://www.perklending.com/

perklending.com-02-min.png

3. (Tablet – Contact) Increase text width and block width?

https://www.perklending.com/contact

perklending.com-03-min.png

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.