Skip to content

Commit

Permalink
Make the legend width slightly smaller.
Browse files Browse the repository at this point in the history
Set the legend width to ~95%, this will add a little padding between the legend>label and the form elements to the right.

This will only effect webkit and IEs
  • Loading branch information
twar59 authored and justinfrench committed Mar 13, 2010
1 parent 8d3df96 commit 91819f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/formtastic/templates/formtastic.css
Expand Up @@ -68,7 +68,7 @@ form.formtastic fieldset > ol > li > li label input { line-height:100%; vertical
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
--------------------------------------------------------------------------------------------------*/
form.formtastic fieldset > ol > li fieldset { position:relative; }
form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:100%; padding-top:0.1em; left 0px}
form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:95%; padding-top:0.1em; left 0px}
form.formtastic fieldset > ol > li fieldset legend span { position:absolute; }
form.formtastic fieldset > ol > li fieldset legend.label label { position:absolute; }
form.formtastic fieldset > ol > li fieldset ol { float:left; width:74%; margin:0; padding:0 0 0 25%; }
Expand Down

0 comments on commit 91819f4

Please sign in to comment.