css font size change not sizing correctly in smartphone view

I have used the following css code to decrease the font size of a slider heading:

.swiper-slide .content h2 {
  font-size:48px;
}

It seems to have worked fine when viewed from a desk or laptop, but the text is over sized when viewed on a smart phone.

Read More

I am using windows 7 on a PC, wordpress CMS, responsive theme…

Related posts

Leave a Reply

3 comments

  1. You could try media queries?

    html { font-size: 62.5%; }
    body { font-size: 1em;}
    
        @media (max-width: 300px) {
            html { font-size: 70%; }
        }
    
        @media (min-width: 500px) {
            html { font-size: 80%; }
        }
    
        @media (min-width: 700px) {
            html { font-size: 120%; }
        }
    
        @media (min-width: 1200px) {
            html { font-size: 200%; }
    }
    

    Try this 🙂 http://jsfiddle.net/yv5eu/