com web/php: Fix styling in IE.: include/header.inc styles/ie-html5.css

From: Date: Fri, 07 Jan 2011 08:54:05 +0000
Subject: com web/php: Fix styling in IE.: include/header.inc styles/ie-html5.css
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23633@lists.php.net to get a copy of this message
Commit: 0916068a296d167cb7adf3dad8d4f54cc55b077d Author: Adam Harvey <aharvey@php.net> 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; +}

« previous php.webmaster (#23633) next »