Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

[html5] Controlling font size

  • 07-05-2014 05:01PM
    #1
    Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭


    I'm writing a simple html5/php/javascript app that I want to run on phone (firefoxos or app in firefox on android), tablet and a normal PC/laptop (all firefox). Is there a good way of controlling font size? I tried to use font-size:1cm; hoping that it will sort out the different dpi/resolution problem, but unfortunately it doesn't work - the size is very inconsistent.

    Any ideas? I don't want to reinvent the wheel (ask for window size, ask for dpi, ask for portrait/landscape, calculate required font size) if there is already a solution.


Comments

Advertisement