svn: /web/php/trunk/ include/header.inc styles/ie-html5.css

[email protected] (Adam Harvey)
Newsgroups php.webmaster
Message-ID <[email protected]>
aharvey                                  Fri, 07 Jan 2011 08:54:05 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=307210

Log:
Fix styling in IE.

Changed paths:
    U   web/php/trunk/include/header.inc
    A   web/php/trunk/styles/ie-html5.css

Modified: web/php/trunk/include/header.inc
===================================================================
--- web/php/trunk/include/header.inc	2011-01-07 08:36:45 UTC (rev 307209)
+++ web/php/trunk/include/header.inc	2011-01-07 08:54:05 UTC (rev 307210)
@@ -30,6 +30,17 @@
  <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" />

Added: web/php/trunk/styles/ie-html5.css
===================================================================
--- web/php/trunk/styles/ie-html5.css	                        (rev 0)
+++ web/php/trunk/styles/ie-html5.css	2011-01-07 08:54:05 UTC (rev 307210)
@@ -0,0 +1,5 @@
+/* Apply some default styles to the HTML5 elements we're using in IE. */
+
+section, footer, aside {
+    display: block;
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.