PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

IE7 forms.css hack affecting border on Hours input field

  1. Gareth
    Member

    Hi,

    I’m losing the left border on my Hours field in IE7 and it seems to be a result of the IE7 specific hack in the forms.css:

    .gform_wrapper .gfield_time_hour input, .gform_wrapper .gfield_time_minute input{*margin-left:-10px}

    It happens with the default and classic themes. Changing this to *margin-left:0px seems to fix it up but I’m curious as whether this is just me and whether this is the best place to address this issue…

    Regards
    Gareth

    Posted 14 years ago on Monday March 15, 2010 | Permalink
  2. the best way to do any customizations is to put the new CSS declarations in your theme style sheet. That way it's not overwritten by future updates. If you prefer, you can copy the entire contents of the forms.css file, append it to your style.css file and then go to the form settings page and set the "output css" option to no.

    Posted 14 years ago on Monday March 15, 2010 | Permalink
  3. Gareth
    Member

    Thanks for your quick response as always...

    I'm still wondering though if this a bug that is specific to my implementation or is it a Gravity Forms bug that will be addressed in future updates?

    Posted 14 years ago on Thursday March 18, 2010 | Permalink
  4. A bug would imply it was unexpected, but it's clearly commented as IE7 specific in the stylesheet and not a bug. The form styles are meant to be a generic starting point and while they work well with most themes, many times the theme-specific CSS conflicts with or influences the form styles. One size fits all never really does.

    Of course we'll be revisiting and revising the styles and markup as we go along, so eventually this may change.

    My suggestion is simply to make the adjustment in your theme stylesheet and that way future updates won't affect any of your changes.

    Posted 14 years ago on Thursday March 18, 2010 | Permalink
  5. Gareth
    Member

    Duly noted.

    Thanks.

    Posted 14 years ago on Friday March 26, 2010 | Permalink

This topic has been resolved and has been closed to new replies.