ruby on rails - How to make simple_form input field wider with CSS? -


this dumb question. trying make simple_form input field wider. here simple_form css posted on github:

/* ----- simpleform styles ----- */  .simple_form div.input {   margin-bottom: 10px;   clear: both; /* required webkit, not gecko */ }  .simple_form label {   float: left;   width: 100px;   text-align: right;   margin: 2px 10px; }  div.boolean, .simple_form input[type='submit'] {   margin-left: 120px; }  div.boolean label, label.collection_radio_buttons {   float: none;   margin: 0; }  label.collection_radio_buttons {   margin-right: 10px;   vertical-align: -2px;   margin-left: 2px; }  .field_with_errors {   background-color: #ff3333; }  .simple_form .error {   clear: left;   color: black;   display: block;   margin-left: 120px; }  .simple_form .hint {   clear: left;   margin-left: 120px;   color: #555;   display: block;   font-style: italic; }  input.radio {   margin-right: 5px;   vertical-align: -3px; }  input.check_boxes {   margin-left: 3px;   vertical-align: -3px; }  label.collection_check_boxes {   float: none;   margin: 0;   vertical-align: -2px;   margin-left: 2px; }  or in sass format:  /* ----- simpleform styles ----- */  .simple_form   div.input     margin-bottom: 10px     clear: both    label     float: left     width: 100px     text-align: right     margin: 2px 10px    .error     clear: left     color: black     display: block     margin-left: 120px    .hint     clear: left     margin-left: 120px     color: #555     display: block     font-style: italic  div.boolean, .simple_form input[type='submit']   margin-left: 120px  div.boolean label, label.collection_radio_buttons   float: none   margin: 0  label.collection_radio_buttons   margin-right: 10px   vertical-align: -2px   margin-left: 2px  .field_with_errors   background-color: #ff3333  input.radio   margin-right: 5px   vertical-align: -3px  input.check_boxes   margin-left: 3px   vertical-align: -3px  label.collection_check_boxes   float: none   margin: 0   vertical-align: -2px   margin-left: 2px 

we tried few options in div input {} there no change field width. not sure part layout of input field. how can make input field wider modified css above? help.

add:

width: 600px: 

to:

.simple_form div.input { }

to make 600px example. google "input .width css" more information.

if want applied text fields use input[type=text]


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -