I am just in the middle of doing some cross browser testing and I have a major problem. As my site is about the UK military, I need it to be compatable with IE5 as they use IE5 alot.
I have created this script in the head of the documents to use a different CSS document if it is IE version 4, 5.0 or 5.5.
// Start of MSIE script
$query_MSIE="SELECT IF (SUBSTRING('$vs',7,1)=5, '<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/MSIE5.css\" />', '<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/layout.css\" />') AS header;";
$MSIE=mysql_query($query_MSIE, $campaign) or die (mysql_error());
// End of MSIE script
The problem is that on testing through Browsercam, it creates space under the page header for no reason. If you refresh the document all is fine. see the 2 examples below, the first on is when the page originally loads up and the second is once the page is refreshed.
Has anybody ever come across this problem before or does anybody know why it is doing this?