small medium large xlarge

Generic-user-small
14 Dec 2008, 07:22
Tan YL (19 posts)

Hi,

I am having problems changing the font size of the select_tag and select_date tags

this is what i have tried.

<%= select_tag(:supermarket, options_for_select(@marketarray,params[:supermarket]), :class => “submit_market”) %>

<%= select_date( Date.today, :prefix => ‘prom_date_end’, :order => [ :day,:month, :year], :html => {:style => “font-size: xx-small;”}) %>

Help would be appreciated.

Samr_small_pragsmall
16 Dec 2008, 02:14
Sam Ruby (634 posts)

The select tag looks right, what does your CSS say? Can you view source on the page that is produced and verify that it has the desired class attribute?

For select_date, instead of :html =>, simply put in the :style => directly. Or better yet, use :class => and place the font-size in your CSS.

Generic-user-small
16 Dec 2008, 11:15
Tan YL (19 posts)

<%= select_date( Date.today, :prefix => ‘prom_date_end’, :order => [ :day,:month, :year], :class => “submit_date”)

html source

css

.submit_date{ font-size:1px; font-family:”lucida grande”,tahoma,verdana,arial,sans-serif; }

I managed to get the select_tag to work cause i used input.submit_market instead of .submit_market

You must be logged in to comment