Search code examples
androidhtmlfirefoxrenderingmobile-website

Why are some rows rendering small in a basic HTML table on mobile browser?


I have a basic HTML Table. It renders as expected on a PC. But on a mobile browser (tested on firefox and chrome on Android) some rows are large and some are small like this. I have uploaded my code here (QR Code).

Why is this happening? and how to fix this?


Solution

  • Got solution from a different question. Adding a viewport tag in the <head> section, will prevent device scaling/zooming and give a uniform look across mobile devices

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />