Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Userform 0.2 CSS help

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1234 Views
  • pinkp
    Avatar
    Community Member
    168 Posts

    Userform 0.2 CSS help Link to this post

    Hi sorry to start a new topic but the other userform one is huge!
    This may be very simple but I can't get it working properly:

    How do I change the style of the "required / custom error message" that appear?
    I can't quite see which class to add/change... it doesn't appear to have its own?

    Thanks

  • Oceanc
    Avatar
    Community Member
    7 Posts

    Re: Userform 0.2 CSS help Link to this post

    Here is what worked for me in case you haven't fiogured this out yet:

    #form_contactus_box .required {
       color:#F00;
       font-size:16px;
       font-weight:bold;
    }

    where my form was withing the div id form_contactus_box

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: Userform 0.2 CSS help Link to this post

    Nice one thanks, you were right I needed to target it more specifically, I ended up using:

    #Form_Form label.required{
       color:#ff9999;
       font-weight:normal;
       font-size:0.8em;
    }

    With a little help from 'CSSEdit'

    Many thanks

    1234 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.