html - Formatting Button Position with Form_For -
I am using form_ to create an input form that has 1 input field and 1 button. I want the submit button to be next to the input field instead of below.
The relevant code is:
. Input {range: 1px solid # 666666; Width: 400px; Height: 22px; Font-size: 16px;} & lt; TD width = "900" height = "50" aligned = "left" valg = "medium" & gt; & Lt;% form_for @contact,: url = & gt; {: Action = & gt; "Create"} ,: html = & gt; {: Class = & gt; "Input"}. F | & Gt%; & Lt;% = f.text_field: email,: size = & gt; 74% & gt; & Lt;% = image_submit_tag '2009-12-06 - Landing 1' gf '% & gt; & Lt;% end% & gt; & Lt; / TD & gt;
Try using
display: Inline;
Comments
Post a Comment