jquery - Font size % wise change -
I want to change the font size of the texts according to the size of the browser, first using CSS to do this , But% was not working
Someone suggested me to use jquery but did not know the true solution
If you use% for the font, this will be the percentage of the parent font, rather the percentage of the window height or width.
Example jquery use
Example: 5% font size of page width
var my_font = ($ (window) .width () * 0.05); // page width $ (document.body) .css 5% font ("font-size", my_font + "px"); Or if you want to design responsive, then use CSS media queries
Comments
Post a Comment