Questions about CSS

2

Personal quick question, how do I set only a font-size in the font so that it decreases by the size of the device?

I'm currently inserting a different font-size size for each @media query , there's a smarter way of doing this so I set it once and it fits according to article or div What is she in?

    
asked by anonymous 25.05.2016 / 20:16

2 answers

3

Instead of using px in size, report em , where 1em is the font at normal size and 2em double the size. Try to find a value that pleases you (eg, 1.5em , 1.2em , etc).

    
25.05.2016 / 20:58
0

You can use the new relative font-size

1.5vw = 15px font size

ex: font-size: 1.5vw

But there is still support for

IE10, IE9, Chrome 22+, Safari 6 and iOS Safari 6, Firefox 19 (late February 2013), Blackberry Browser 10

    
25.05.2016 / 21:05