Commit: 0916068a296d167cb7adf3dad8d4f54cc55b077d Author: Adam Harvey <[email protected]> Fri, 7 Jan 2011 08:54:05 +0000 Parents: 08ab5df57558b02fa43c2279fa75c23ba481bf45 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=0916068a296d167cb7adf3dad8d4f54cc55b077d Log: Fix styling in IE. Changed paths: M include/header.inc A styles/ie-html5.css Diff: diff --git a/include/header.inc b/include/header.inc index 4356f6d..1f3693f 100644 --- a/include/header.inc +++ b/include/header.inc @@ -30,6 +30,17 @@ if ($shortname) { <link rel="<?php echo $rel ?>" href="<?php echo $MYSITE ?><?php echo $page ?>" /> <?php endforeach ?> + <!--[if IE]> + <script type="text/javascript"> + // Enable HTML5 elements to be styled in IE. + document.createElement("section"); + document.createElement("aside"); + document.createElement("footer"); + </script> + + <link rel="stylesheet" type="text/css" href="<?php echo $STATIC_ROOT ?>styles/ie-html5.css<?php echo $v ?>" media="all"/> + <![endif]--> + <link rel="stylesheet" type="text/css" href="<?php echo $STATIC_ROOT ?>styles/reset.css<?php echo $v?>" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $STATIC_ROOT ?>styles/theme.css<?php echo $v?>" media="screen" /> <link rel="stylesheet" type="text/css" href="<?php echo $STATIC_ROOT ?>styles/doc.css<?php echo $v?>" media="screen" /> diff --git a/styles/ie-html5.css b/styles/ie-html5.css new file mode 100644 index 0000000..8ef6533 --- /dev/null +++ b/styles/ie-html5.css @@ -0,0 +1,5 @@ +/* Apply some default styles to the HTML5 elements we're using in IE. */ + +section, footer, aside { + display: block; +} -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
