From a401b59242122697d423468175453073681c185e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 16 May 2008 10:42:51 +0000 Subject: [PATCH] Yet another at fixing the layout of the search box. Seems to work now on FF2, IE7, Operand and Safari though we are giving space away on FF. --- app/views/site/_search.rhtml | 9 ++------- public/stylesheets/site.css | 11 +++++++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index d4214e8fe..5b4e74b34 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -38,13 +38,8 @@ <% form_remote_tag(:loading => "startSearch()", :complete => "endSearch()", :url => { :controller => :geocoder, :action => :search }) do %> - - - - - - -
<%= text_field_tag :query, h(params[:query]) %><%= submit_tag 'Go' %>
+ <%= text_field_tag :query, h(params[:query]) %> + <%= submit_tag "Go" %> <% end %>

Searching...

diff --git a/public/stylesheets/site.css b/public/stylesheets/site.css index c6b566215..df04b7c99 100644 --- a/public/stylesheets/site.css +++ b/public/stylesheets/site.css @@ -354,13 +354,16 @@ hides rule from IE5-Mac \*/ padding: 0px; } -.optionalbox input { +#search_field form { width: 100%; } -.optionalbox td { - margin: 0px; - padding: 0px; +#search_field input[type="text"] { + width: 116px; +} + +#search_field input[type="submit"] { + width: 26px; } .search_form { -- 2.43.2