Add IE6 specific hacks CSS that only gets loaded if user agent is MSIE 6.
[selectricity] / app / views / layouts / main.rhtml
index 5ae18dc81a11db933e7b20df5b9627d299075ad6..5836b4f2e4422f832c979dd3eacd54831b466e81 100644 (file)
@@ -5,6 +5,7 @@
     <%= stylesheet_link_tag "common", :media => "all" %>
     <%= stylesheet_link_tag "main", :media => "all" %>
     <%= stylesheet_link_tag *(@stylesheets) %>
+    <%= stylesheet_link_tag "ie6hacks", :media => "all" if request.user_agent =~ /MSIE 6/ %>
     <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
   </head>
 

Benjamin Mako Hill || Want to submit a patch?