We are an art gallery with a web site currently using deprecated tags like:
Code:
<BODY><Table class="TableLeft" align="left" width="81%" border="0"><tr>
<td width="40%" height="50%" align="center" valign="top">
Having deployed classes throughout in readiness to go to Strict using the div model. We have found like everyone else, the disparity and inconsistancies between browsers. At least with the deprecated tags; the use of percentages re-sizes to the screen. When using classes it would appear that
Firefox calculates the percentages against the document height rather than screen. We have over 16500 images and the majority of 35,000 pages contain images. I have had to express dimensions explicitly in css. Then the idea was to rearrange the images according to the screen dimensions. Along the lines of:
If the
screen.height is less than 1000 display 2 rows with 3 images
The Div element being 270 wide and 300 high
If the
screen.height greater 1000+ display 3 rows with 2 images
The Div element being 400 wide and 300 high
if the
screen.width is 1400 + display 2 rows with 3 images
The Div element being 400 wide and 500 high
I have tried Creating Cookies - successful but needs a Refresh
I have tried using Form input - Firefox needs one input type to be displayed
I wrote this script to create a Session Variable but it doesn't parse the ScrHeight and ScrWidth values to use in the IF statement :
Code:
<script language="vbscript">
dim ScrHeight
dim ScrWidth
ScrHeight = screen.height
ScrWidth = screen.width
if ScrHeight = "" then
Session("Screen") = "Null"
elseif ScrHeight => 1000 then
Session("Screen") = "High"
elseif ScrWidth => 1400 then
Session("Screen") = "Wide"
else
Session("Screen")= "Normal"
</script>
Once you have have the Session Variable then you can do something intelligent with it. Having looked at the pre-production (new) version, under the class model all the pages are scrunched up at the top of the page and it just looks better to spread the images in proportion to the screen.
Simon