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.

font-family changing form width

  1. I am trying to change the font that GF uses to match my site.

    In my own CSS sheet I added :

    [css]
    .gform_wrapper { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; }

    Once added, the form width shrinks by 20%. I can't seem to find any other cause for the width change other than "font-family". I am working locally on the site so I can't post a link. Any thoughts?

    Posted 12 years ago on Monday January 23, 2012 | Permalink
  2. Richard Vav
    Administrator

    Could you post a link to your site so we can take a look?
    Edit: Sorry missed the bit about it being a local dev

    Don't know why the font family change should affect the width but you could try adding something like this to your stylesheet

    body .gform_wrapper {
    max-width: none;
    }
    Posted 12 years ago on Tuesday January 24, 2012 | Permalink
  3. Not sure why your font declaration would be causing an issue unless your CSS syntax somewhere is incorrect and it's breaking another rule.. hard to say without being to inspect it. I'm also unclear why setting the "max-width" value would do anything when your problem is more of "minimum width" issue.

    I personally would set a min-width value and see if that helps out.

    Posted 12 years ago on Tuesday January 24, 2012 | Permalink
  4. Richard Vav
    Administrator

    @Kevin your right if anything it would be min-width not max-width
    @Birdsong if you are still having problems maybe you could copy and paste some of the code from your stylesheet to http://www.pastie.org so we can see if we can spot anything in there that may be causing a problem.

    Posted 12 years ago on Tuesday January 24, 2012 | Permalink
  5. I was able to resize it using min-width. Thanks so much for helping!

    Posted 12 years ago on Tuesday January 24, 2012 | Permalink
  6. Awesome, thanks for letting us know!

    Posted 12 years ago on Tuesday January 24, 2012 | Permalink

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