Forum Moderators: open
how do i optimise and design the page for best viewing irrespective of the resolutions at which it is being viewed?
Are there some setings i need to follow...also is it better to base my table on percentages or pixels to get consistent layout......
thanks
replace your image and width with what you want yours to be.
<script type="text/javascript" language="JavaScript1.2">
<!--
var resWidth = window.screen.width;
if(resWidth > 1024) {
image1_width = 1000;
}
else if(resWidth == 1024) {
image1_width = 973;
}
else if(resWidth == 800) {
image1_width = 740;
}
else if(resWidth < 800) {
image1_width = 500;
}
else {
image1_width = 973;
}
var image1 = '<img src="your-image.jpg" width="' + image1_width + '">';
document.write(image1);
// -->
</script>
But what about aligning my entire page in the center? I just need to set the table properties as align = center? is this correct?
and then what should be the percentage amount?