Hi,
resizing the viewer itself is not the problem (you can change the viewer size by changing the sizes of the html elements) - but regarding to your description you want different html page designs/layouts - and therefore it might be better to use use different html pages instead of restructuring the whole html page dynamically by Javascript code.
Maybe just add a simple Javascript redirection to your 'mobile' page design.
e.g. here a simple script for redirecting iPhone/iPod or Android Phones:
|
Source code
|
1
2
3
4
5
6
7
|
<script>
var ua = navigator.userAgent.toLowerCase();
if(ua.indexOf("iphone") >= 0 || ua.indexOf("ipod") >= 0 || (ua.indexOf("android") >= 0) && ua.indexOf("mobile") >= 0))
{
window.location = "mobile.html"
}
</script>
|
Best regards,
Klaus