Chakushinari
06-07-2009, 18:36
Joomla! 1.5.10 Production/Stable [ Wohmamni ]
Firefox i Opera wyświetlają stronę prawidłowo.
IE zamiast wyśrodkować stronę, wyrównuje ją do lewej.
Po poszukiwaniach zastosowałem następujące porady jakie znalazłem. W index.php wpisałem:
<style type="text/css">
body {
text-align: center;
}
div {
text-align: left;
margin: 0 auto;
}
</style>oraz w sekcji "head":
<!--[if lte IE 6]>
<style type="text/css">
.clearfix {height: 1%;}
img {border: none;}
</style>
<![endif]-->
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<!--[if lte IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->
<?php if ($tmpTools->isIE6()) { ?>
<!--[if lte IE 6]>
<script type="text/javascript">
var siteurl = '<?php echo $tmpTools->baseurl();?>';
</script>
<![endif]-->
<?php } ?>
Po tych zmianach pod IE8 w "widoku zgodności" strona jest wyśrodkowana, ale po jego wyłączeniu już nie.
Firefox i Opera wyświetlają stronę prawidłowo.
IE zamiast wyśrodkować stronę, wyrównuje ją do lewej.
Po poszukiwaniach zastosowałem następujące porady jakie znalazłem. W index.php wpisałem:
<style type="text/css">
body {
text-align: center;
}
div {
text-align: left;
margin: 0 auto;
}
</style>oraz w sekcji "head":
<!--[if lte IE 6]>
<style type="text/css">
.clearfix {height: 1%;}
img {border: none;}
</style>
<![endif]-->
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<!--[if lte IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->
<?php if ($tmpTools->isIE6()) { ?>
<!--[if lte IE 6]>
<script type="text/javascript">
var siteurl = '<?php echo $tmpTools->baseurl();?>';
</script>
<![endif]-->
<?php } ?>
Po tych zmianach pod IE8 w "widoku zgodności" strona jest wyśrodkowana, ale po jego wyłączeniu już nie.