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.

target individual form field list items

  1. pfoster
    Member

    Can't seem to find this in the CSS targeting samples. Is there a way to target one li of a form field?

    Form here (on the second page is where the issue is - trying to get the fax field to slide over next to phone but the width of the li is preventing it.

    Thanks

    http://usatodayeducation.com/choice/so-wicked/#gf_1

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  2. Sure, each li has it's own unique ID. Check out this Screenshot

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  3. pfoster
    Member

    Thanks Rob!

    So will this work?

    body #gform_wrapper .gform_body .gform_fields .gfield_1_26 li {border: 1px solid red}

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  4. Actually you would just need to use this:

    [css]
    li#gfield_1_26 {}
    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  5. pfoster
    Member

    Thanks Rob! Much appreciated!

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  6. pfoster
    Member

    Hey Rob,

    I'm still missing it somehow. Any chance you could take a quick look? Just trying to slide that Fax field over to the left. Thanks!

    http://usatodayeducation.com/choice/welcome-back/#gf_1

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  7. This seemed to work for me (from my limited view). Try this out:

    [css]
    #field_1_8 {
        width: 53%;
    }
    #field_1_26 {
        width: 10%;
    }
    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  8. pfoster
    Member

    Thanks again, Rob, that worked out! Choice Hotels thanks you :)

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  9. Right on, glad to help out!

    Posted 11 years ago on Thursday September 27, 2012 | Permalink

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