summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2010-07-17 15:49:47 -0600
committerChad Kieffer <ckieffer@gmail.com>2010-07-17 15:49:47 -0600
commita8c629409bbc78791c3ae7f5f16dac0c90db214d (patch)
treed2534b2b25e229c6429aea86947c901d63b2bec5
parent71e097e47bad25def47a5960c72cfac197066290 (diff)
Fix margin: 0 auto; IE issue in the upgrader view by adding a doctype to the template. Minor code refactoring. Also seems to fix #1188.
-rw-r--r--modules/gallery/css/upgrader.css9
-rw-r--r--modules/gallery/views/upgrader.html.php2
2 files changed, 6 insertions, 5 deletions
diff --git a/modules/gallery/css/upgrader.css b/modules/gallery/css/upgrader.css
index 2b3b5afd..d1b74c31 100644
--- a/modules/gallery/css/upgrader.css
+++ b/modules/gallery/css/upgrader.css
@@ -9,16 +9,15 @@ h1 {
}
div#outer {
- width: 650px;
- background: white;
+ background: #fff;
border: 1px solid #999;
margin: 0 auto;
- padding: -10px;
+ width: 650px;
}
div#inner {
- padding: 0 1em 0 1em;
- margin: 0px;
+ margin: 0;
+ padding: 0 1em;
}
div#footer {
diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php
index f5cae9be..0ce24ef8 100644
--- a/modules/gallery/views/upgrader.html.php
+++ b/modules/gallery/views/upgrader.html.php
@@ -1,4 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?= t("Gallery 3 upgrader") ?></title>