One thing I love about RoR is the ajax side of it and how easy it makes it. For instance adding something to a cart with ajax:
<% form_remote_tag :url => {:controller => :store, :action => :add_to_cart, :id => film} do %>
<%=submit_tag(_('Buy »'), "title" => _("add to cart @ %s") % number_to_currency(film.price, :unit => "€"), :class => "buy_button_big buy_button")%>
<% end %>
That is great. On FireFox it looks like this:
But on IE6 it looks like this:
Insane quatities of extra space. Seems that IE loves to add space after forms. You can't stop it!
Or can you!?
I have found that adding this in my css is the trick:
form {
margin:0;
padding:0;
}
But, since I don't need it in ff... why not use the very sweet CSS Browser Selector plugin.
Now you can do this:
.ie6 form {
margin:0;
padding:0;
}
Add all shall be well in the garden.
No comments:
Post a Comment