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.

Widget CSS layout

  1. Hi - I am running into this issue (see graphic) and could use some help:

    http://dl.dropbox.com/u/3353027/GV%20Issue.png

    Live URL: http://www.blacktipit.com

    Thanks -M

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  2. You just need to remove the bottom borders from the list items inside the form structure, then target the inputs by their unique ID and apply a few padding/margin rules so they're consistent with the adjacent form.

    [css]
    body .gform_widget .gform_wrapper ul li {
        border: none;
    }
    
    body .gform_wrapper input#input_4_3 {
        padding: 6px!important;
        margin: 5px 3px 0 0!important;
    }
    
    body .gform_wrapper .gform_footer input#gform_submit_button_4 {
        padding: 6px 6px 5px 6px!important;
        margin: 5px 3px 0 0!important;
    }

    test screenshot: http://bit.ly/ntSilq

    http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  3. First - thank you! Second, we are so close. Take a look at it live. I made sure to add the form ID. However, even when I tweak the padding or margins, it never changes. Not sure why that is happening.

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  4. Your rule is wrong. You're targeting the ID as if it were a class name..

    you have

    [css]
    body .gform_wrapper_4 input#input_4_3 {
        padding: 6px!important;
        margin: 5px 3px 0 0!important;
    }

    which is wrong with the . (dot)

    It should be

    [css]
    body #gform_wrapper_4 input#input_4_3 {
        padding: 6px!important;
        margin: 5px 3px 0 0!important;
    }

    with the # (pound) sign to denote and ID/name instead of a class. It's a small thing, but it makes all the difference.

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  5. Yes, that did it. I did just copy/paste your code. I didn't realize the # was in the wrong place. I am also seeing one more issue on these pages:

    http://blacktipit.com/contact/
    http://blacktipit.com/client-agreement/

    Each page is a full contact form and look what it does to the widget. Any ideas?

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  6. Try setting your form that you're using for the widget back to the "top label" option. Then, you can do this to hide the field label.

    [css]
    body #gform-wrapper_4 li#field_4_3 label.gfield_label {
        display: none;
    }

    the left label option that you're using now is still applying a 29% width to the label element thats there, even thought the tag is empty.

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  7. We are so close! I pasted your code and made the widget form a top label. Now, if you look at those two pages, the widget form submit button is off. Did I forget another #?

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  8. Kevin - just checking in with you (I know that you're busy and really appreciate the help). Any ideas on how to fix the layout here?

    Thanks again,

    Matthew

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  9. I didn't forget you Matthew. I promise. I'm circling back around to your site again in a few and will let you know what I come up with.

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  10. Thanks so much!

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  11. Matthew,

    Thanks for your patience. I was stuck on something else for a while. It looks like we have to be really specific with the CSS inheritance to override the default styles here. Change your existing rule to this and see how it works for you. It worked fine in my test.

    [css]
    html body.page div#gform_wrapper_4.gform_wrapper form#gform_4 div.gform_body ul#gform_fields_4.gform_fields li#field_4_3.gfield label.gfield_label {
        display: none;
    }

    screenshot: http://bit.ly/rlBF65

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  12. Definitely better! Is there a way we can tighten up the layout so that it matches the other form to the right?

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  13. You'll just have to tinker with it from here. Look at the other form and see what the padding/margins etc. are and just apply the necessary properties to the new form fields that we've already targeted.

    Posted 12 years ago on Tuesday July 19, 2011 | Permalink
  14. Ok, those forms are just in their default state. I'll try to do some tweaking.

    Posted 12 years ago on Wednesday July 20, 2011 | Permalink

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