From 2b21acb16ac02ac6fd15428a021c3711f60e3b21 Mon Sep 17 00:00:00 2001
From: Paul van Tilburg
Date: Tue, 1 Jun 2010 12:01:59 +0200
Subject: [PATCH] Make the image positioning work under IE, using ugly fixed
positioning hacks.
---
anne-survey.rb | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/anne-survey.rb b/anne-survey.rb
index ef82649..a575586 100644
--- a/anne-survey.rb
+++ b/anne-survey.rb
@@ -238,7 +238,7 @@ module Anne::Views
def vote(image, progress = 0)
h2 "Welk beeld is ruimtelijker?"
- form :action => R(Vote), :method => :post do
+ form.images! :action => R(Vote), :method => :post do
input :type => "hidden", :name => "image", :value => image
input.image :type => "image", :src => R(ImageX, "#{image}-l.png"),
:name => "left", :id => "left"
@@ -309,16 +309,18 @@ body {
#header h1 { padding-top: 25px; margin-top: 0px; }
.image { border: thin solid #888; }
-#right { float: right }
+#images { position: relative; height: 470px; }
+#left { position: absolute; left: 0px; }
+#right { position: absolute; right: 0px; }
#progressbar {
height: 6px;
- margin-top: 14px;
+ margin-top: 8px;
background-color: #101073;
}
#progressbar #done {
- height: inherit;
+ height: 6px;
background-color: #d6007b;
}