------------------------------------------------------
To install:
-Replace the layout.tpl file.
-Add the stylesheet_ie6.css file to the stylesheet directory.
------------------------------------------------------
-This corrects the issue where the bottom middle content box or 'latest products' was being pushed to the very bottom left hand corner of the page, underneath all of the menus, in Internet Explorer 6.
-This also corrects the issue where the site is not centered in Internet Exporer 6.
-This also corrects the PNG issue in IE 6, where transparent PNGs are not rendered correctly. However, the small icon png's, are still grey.
There is a separate style sheet for IE6, which could be converted into one style sheet with some PHP if statements. The most strait forward way to use the stylesheet is with a simple if statement to check if the browser is IE6.
Here is the if statement that identify's if the browser is IE6, this is already included into the attached layout.tpl file.
Code: Select all
if(substr_count($_SERVER['HTTP_USER_AGENT'],"MSIE 6")){
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"catalog/view/theme/default/stylesheet/stylesheet_ie6.css\" />";
}
else{
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"catalog/view/theme/default/stylesheet/stylesheet.css\" />";
}
Code: Select all
// If browser is IE, set the height of this div, so it does not overlap the right side menus
if(substr_count($_SERVER['HTTP_USER_AGENT'],"MSIE 6")){
echo "<div id=\"content\" style='height: 540px;'>";
}
else{
echo "<div id=\"content\">";
}