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.

Zip and City fiels not aligned; removing line break with CSS

  1. leono77
    Member

    Hi

    A problem and a solution in one post:

    my zip code field and the city field didn't align in my form. I sorted out in Firebug that removing a line break '' solves it, but could not find the code. I tried removing linebreaks in common.php but that doesn't work.

    I figured out that adding soms css to remove the unwanted break does the trick:

    ' .ginput_complex.ginput_container br { display:none } '

    Here a 3 screenshots:
    http://www.41c.nl/downloads/schermproef_2577.png
    http://www.41c.nl/downloads/schermproef_2578.png
    http://www.41c.nl/downloads/schermproef_2579.png

    Using version 1.6.2 / WP 3.2.1

    Posted 13 years ago on Saturday December 3, 2011 | Permalink
  2. Leono, I just checked the address field code on my dev site and it does not have line breaks. Have you tested for a theme/plugin conflict. There could be something appending the breaks? Are the break tags present if you preview the form from within the admin?

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 13 years ago on Saturday December 3, 2011 | Permalink