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.

Background Color Class?

  1. mheffner
    Member

    Hi,

    We need a way to show items which are out of stock on this form http://www.eatfoodforlife.com/shop/.

    I would like to create a CSS class that allows me to give the product field a red background when we run out of the item. Can you point me in the right direction or show me some pointers on how to add this custom class to Gravity Forms so that I or someone even more technically challenged can add this within a specific field?

    Your help is appreciated. Thanks!
    Matt

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  2. You should be able to go into the advanced tab of the field and set a class such as "redbox" and then add the style to your theme's stylesheet:

    [css]
    .redbox {
    background-color: red;
    }
    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  3. mheffner
    Member

    Rob thank you. I was expecting more steps but this was very easy. Thank you for having patience with a CSS novice.

    Thanks!
    Matt

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  4. Matt, no worries at all, always glad to help out!

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

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