• nonamer

    (@localgreeneats)


    Is there a way to make blog post titles scalelable for mobile? The other parts of the page/posts are changing but my blog posts aren’t therefore in a smaller version, the text is overlapping and impossible to read.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can change your css to make the font smaller when the screen is smaller then 992px.

    Example:

    @media (max-width: 992px) {
       h1 {
         font-size: 12px;
        }
    }
    Thread Starter nonamer

    (@localgreeneats)

    Thanks- I have that however I want to be able to scale up and down based on devices and not have to write a media query for each device or orientation.

    Hi Nonamer,

    Font sizes won’t scale proportionately to screen width on their own, so media queries must be used. That said, you can get great results with just a few media queries.

    Here’s an outline of how you could scale the size of a post title with the size of the screen:

    
    // phones
    .post-title {
      font-size: 24px;
    }
    // tablets
    @media all and (min-width: 600px) {
      .post-title {
        font-size: 36px;
      }
    }
    // laptops
    @media all and (min-width: 900px) {
      .post-title {
        font-size: 48px;
      }
    }
    // widescreen monitors
    @media all and (min-width: 1200px) {
      .post-title {
        font-size: 60px;
      }
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘scalable font’ is closed to new replies.