Does anyone know of a way that i can make a page automatically fit to scale depending on the resolution of the viewers screen e.g. a customer that views the site in a larger resolution will see the web page roughly the same as a customer viewing in a smaller resolution.
I need some way of making the webpage fit to the customers resolution?
I was thinking of maybe having two css files e.g. 1024.css & 800.css and then using something along the lines of
- Code: Select all
<link rel="stylesheet" type="text/css" href="800.css">
<script type="text/javascript">
if (window.innerWidth > 800) {
document.write('<link rel="stylesheet" type="text/css"
href="1024.css">');
}
</script>
But then i have loads of different fonts sizes and all sorts so what would hte css files say.
Any Ideas?
dan
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1



