Skip to content
Browse files

Work-around for Firefox 4 giving focus to the <li> wrapper (fixes #524).

http://www.quirksmode.org/css/clearing.html states that auto and hidden work, quick test in major browsers confirms
  • Loading branch information...
1 parent 17cc8c2 commit 49de2d9b976b80579d46463f3ebbf4f5c6078ba1 @justinfrench committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/generators/templates/formtastic.css
View
4 lib/generators/templates/formtastic.css
@@ -30,7 +30,7 @@ form.formtastic ul.errors li { padding:0; border:none; display:list-item; }
/* FIELDSETS & LISTS
--------------------------------------------------------------------------------------------------*/
-form.formtastic fieldset { overflow:auto; } /* clearing contained floats */
+form.formtastic fieldset { overflow:hidden; } /* clearing contained floats */
form.formtastic fieldset.inputs { }
form.formtastic fieldset.buttons { padding-left:25%; }
form.formtastic fieldset ol { }
@@ -39,7 +39,7 @@ form.formtastic fieldset.buttons li { float:left; padding-right:0.5em; }
/* INPUT LIs
--------------------------------------------------------------------------------------------------*/
form.formtastic fieldset > ol > li { padding:0.5em 0; margin-top:-0.5em; margin-bottom:1em; } /* padding and negative margin juggling is for Firefox */
-form.formtastic fieldset > ol > li { overflow:auto; } /* clearing contained floats */
+form.formtastic fieldset > ol > li { overflow:hidden; } /* clearing contained floats */
form.formtastic fieldset > ol > li.required { }
form.formtastic fieldset > ol > li.optional { }

0 comments on commit 49de2d9

Please sign in to comment.
Something went wrong with that request. Please try again.