Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Fixing Mobile/Tablet views for an H1 text box


pinchit101

Question

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
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

Hi. It looks like you solved this?

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
On 7/16/2021 at 7:46 PM, pinchit101 said:

No, it is not solved. If you adjust your screen width, you can see the errors appear. 

Which screen size you want to fix this problem?

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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