Forum: Ruby on Rails can you style form elements?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A29c20d3ac185d9e7772972cdc5dc08b?d=identicon&s=25 Daniel Scrima (mrmcnerdypants)
on 2007-04-20 21:02
(Received via mailing list)
I have a small login partial, that is just 2 text_field_tags and a
submit button...

Is there a way to make them a little smaller? This is supposed to be a
small partial right under the navigation bar, but whatever the default
elements are, are pretty large and unattractive unless they would be a
little smaller.

An example of what I'm going for is the login at the top of the
directv page. http://www.directv.com

Thanks guys
317497f11ceba4df9a994ba93cde6e32?d=identicon&s=25 Scott Walter (Guest)
on 2007-04-20 21:07
(Received via mailing list)
Of course you can.    Try something like:

<input type="text" style="width:30px;height:10px";/>

scott.
On Apr 20, 2007, at 2:01 PM, AbsolutZero wrote:

> directv page. http://www.directv.com
>
> Thanks guys
>
>
> >

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott F. Walter - http://scottwalter.com

"Opportunity is missed by most people because it is dressed in
overalls and looks like work" - Thomas Edison
21f7ed21f11a809050594c82eab11d67?d=identicon&s=25 Robert Walker (Guest)
on 2007-04-20 21:27
(Received via mailing list)
Here, in fact is the exact CSS applied to the your example input tag:

#membersLogin input.login {
   display:inline !important;
   margin:3px 5px 0px 0px;
   width:66px;
   border:1px solid #CCC;
}
316c03a99e8ed311e5462d94f085fc2e?d=identicon&s=25 John Ivanoff (Guest)
on 2007-04-20 21:36
(Received via mailing list)
and your input boxes would have a class of login

<input type="text" class="login" />
This topic is locked and can not be replied to.