I am developing responsive website which will display for both mobile and tablets. If the content/designs are same for mobile and tablet, I can use media queries to change the css file based on viewport like below.
<link rel="stylesheet" type="text/css" media="screen and (max-width: 640px)" href="css/devices/screen/layout-modify1.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width: 641px) and (max-width: 800px)" href="css/devices/screen/layout-modify2.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width: 801px) and (max-width: 1024px)" href="css/devices/screen/layout-modify3.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width: 1025px)" href="css/devices/screen/layout-modify4.css">
By default, I am using index_mob.html
for mobile responsive designs.
But, my content are slightly different for tablet.
So, how can I find the viewport size for tablet and based on the viewport size, I need to call tablet design page - index_tab.html
Is it possible?