How to make text scale with mobile?

Discussion in 'HTML & Website Design' started by serialentre, Jan 28, 2015.

  1. #1
    Hi,

    I noticed that my text becomes smaller when I go into a lower screen size(namely smart phones).

    I tried this for multiple screen sizes but doesn't seem to work -

    @media screen and (max-width: 350px) {
        h1,h2,h3,h3,p {
            font-size: 2em;
        }
    }
    Code (markup):
    I read this from here - http://stackoverflow.com/questions/15649244/responsive-font-size

    I'm not sure if using em causes any problems, but whenever I access the site, I am automatically zoomed in.

    Thanks!
     
    Last edited: Jan 28, 2015
    serialentre, Jan 28, 2015 IP
  2. serialentre

    serialentre Member

    Messages:
    123
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    30
    #2
    I found the answer. It has got to do with specificity... Totally missed that.
     
    serialentre, Jan 28, 2015 IP