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

Font Squish Problem with Custom CSS


dehb

Question

Site URL: https://www.cedarcrest.ab.ca/services

Hoping a CSS Wizard will know exactly what I'm doing wrong here.  It seems fine until you have a weird window resolution and then each letter for one of the sections will go 1 letter each line.

 

Problem: Experiencing some font squish when the window is resized.

Screenshot(s): Attached - one with squish, one without.

Template Version: 7.1

Browser: Seems to be most, you just have to resize the window slightly differently to achieve the result.

Custom CSS:

/*and (min-width:641px)*/

@media only screen {
  #collection-6261ea5a26d68f3b783cdc89{
    #page .page-section:nth-of-type(2) {
      width: 50%;
      /*min-height: 80vh;*/
      align-items: center;
      float: left;
    }
    #page .page-section:nth-of-type(3) {
      width: 50%;
      /*min-height: 80vh;*/
      align-items: center;
      float: left;
    }
       #page .page-section:nth-of-type(4) {
      width: 50%;
     /* min-height: 80vh;*/
      align-items: center;
      float: right;
    }
  #page .page-section:nth-of-type(5) {
      width: 50%;
     /* min-height: 80vh;*/
      align-items: center;
      float: right;
    }
      #page .page-section:nth-of-type(6) {
      width: 50%;
      /*min-height: 80vh;*/
      align-items: center;
      float: left;
    }
#page .page-section:nth-of-type(7) {
      width: 50%;
      /*min-height: 80vh;*/
      align-items: center;
      float: left;
    }
      #page .page-section:nth-of-type(8) {
      width: 50%;
      /*min-height: 80vh;*/
      align-items: center;
      float: right;
    }
  }
}

 

image.png

image.png

Link to comment

5 answers to this question

Recommended Posts

  • 0

Add this to Design > Custom CSS

/* Fix services tablet problem */
@media screen and (max-width:991px) and (min-width:768px) {
[data-section-id="6261ec3f4816a4467ae6eb1f"] {
    width: 50%;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
Posted (edited)

Hi @tuanphan

I appreciate the response.  Does this replace the current code?  Pasted below for convenience.

I tried both (adding in addition to and replacing the code with yours and neither worked.

Any other suggestions?

 

@media only screen {
  #collection-6261ea5a26d68f3b783cdc89{
    #page .page-section:nth-of-type(2) {
      width: 50%;
      align-items: center;
      float: left;
    }
    #page .page-section:nth-of-type(3) {
      width: 50%;
      align-items: center;
      float: left;
    }
       #page .page-section:nth-of-type(4) {
      width: 50%;
      align-items: center;
      float: right;
    }
  #page .page-section:nth-of-type(5) {
      width: 50%;
      align-items: center;
      float: right;
    }
      #page .page-section:nth-of-type(6) {
      width: 50%;
      align-items: center;
      float: left;
    }
#page .page-section:nth-of-type(7) {
      width: 50%;
      align-items: center;
      float: left;
    }
      #page .page-section:nth-of-type(8) {
      width: 50%;
      align-items: center;
      float: right;
    }
  }
}

 

Capture.PNG

Edited by dehb
Added screenshot.
Link to comment
  • 0

I think I might have got it.. added section (9).

@media only screen {
  #collection-6261ea5a26d68f3b783cdc89{
    #page .page-section:nth-of-type(2) {
      width: 50%;
      align-items: center;
      float: left;
    }
    #page .page-section:nth-of-type(3) {
      width: 50%;
      align-items: center;
      float: left;
    }
       #page .page-section:nth-of-type(4) {
      width: 50%;
      align-items: center;
      float: right;
    }
  #page .page-section:nth-of-type(5) {
      width: 50%;
      align-items: center;
      float: right;
    }
      #page .page-section:nth-of-type(6) {
      width: 50%;
      align-items: center;
      float: left;
    }
#page .page-section:nth-of-type(7) {
      width: 50%;
      align-items: center;
      float: left;
    }
#page .page-section:nth-of-type(8) {
      width: 50%;
      align-items: center;
      float: right;
    }
#page .page-section:nth-of-type(9)
{
      width: 50%;
      align-items: center;
    }
  }
}

/* Fix services tablet problem */
@media screen and (max-width:991px) and (min-width:768px) {
[data-section-id="6261ec3f4816a4467ae6eb1f"] {
    width: 50%;
}}

 

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