Hi
I have an odd and frustrating issue with FF only. For once IE is behaving it seems.
It is to do with Image loading and the space allocated to the image before the page finishes loading. Perhaps this is related to the space required to display the ALT tag, perhaps not.
To duplicate this problem try to following.
In FF go to
http://www.famousfriends.co.uk/picture/387/
The more photo thumbs line up vertically under the main photo.
Now hit reload.
The more photo thumbs line up as desired alongside the main photo.
Clear cache and repeat.
It is clear the problem only occurs on first page load. It is not restricted to that product either. There is enough space to display the more photo thumbs without any clashes.
The problem does not repeat on IE.
I cannot set width and height attributes on the image tags or CSS since the images are generated via thumb nail program and adjust to keep the aspect ratio (ie some are landscape some are portrait).
So I am stumped as to what CSS attributes to target and where to look to tackle this odd problem.
The markup:
Code:
<table cellspacing="0" cellpadding="0" id="photodetailtable"><tr><td>
<img id="photodetail" src="/getImage/0945631.jpg" alt="Henry and Zidane" />
<strong>More photos:</strong><br />
<a href="http://www.famousfriends.co.uk/picture/379/" target="_self" title="France Training"><img class="photodetailthumb" src="/getThumb/0907809.jpg" alt="France Training" /></a><br />
<a href="http://www.famousfriends.co.uk/picture/384/" target="_self" title="Silvestre and Henry 2"><img class="photodetailthumb" src="/getThumb/0932249.jpg" alt="Silvestre and Henry 2" /></a><br />
<a href="http://www.famousfriends.co.uk/picture/385/" target="_self" title="Thierry scores!"><img class="photodetailthumb" src="/getThumb/0938421.jpg" alt="Thierry scores!" /></a><br />
</td></tr></table><br />
The relevant CSS code.
Code:
div#content table#photodetailtable {
}
div#content table#photodetailtable a {
}
div#content img#photodetail {
margin-top: 0px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 0px;
border: medium ridge #CCCCCC;
float: left;
}
div#content img.photodetailthumb {
margin-top: 1px;
margin-right: 0px;
margin-bottom: 2px;
margin-left: 0px;
border: medium ridge #CCCCCC;
}
The test page.
http://www.famousfriends.co.uk/test.html
The full CSS files are linked to from the test page.
There is a example screen capture of the problem on linked to on the test page.
Hope someone can help me sus this one out.
MattyUK