Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Userform 0.2 CSS help


Go to End


3 Posts   2018 Views

Avatar
pinkp

Community Member, 182 Posts

12 November 2009 at 11:18pm

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

Avatar
Oceanc

Community Member, 7 Posts

13 November 2009 at 3:37pm

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

Avatar
pinkp

Community Member, 182 Posts

13 November 2009 at 9:40pm

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