What css classes are available

  • Ric McDonald
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 3 months ago #92454 by Ric McDonald
What css classes are available was created by Ric McDonald
I note that form elements have a CSS Class field when adding a custom field but I do not know the syntax or available classes.
For example class to bold or color a message text?

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #92467 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic What css classes are available
Hello Ric

We don't have available css classes like that. Mostly, you can only use the css classes provide by twitter bootstrap to control size of the input:

1. input-small
2. input-medium
3. input-large
4. input-xlarge
5. input-xxlarge

If you want to control css like that, you can define the custom css classes you want. Go to Membership Pro -> Configuration, look at Custom CSS tab, add the custom css classes you want and use these new css classes for the fields

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Ric McDonald
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 3 months ago #92490 by Ric McDonald
Replied by Ric McDonald on topic What css classes are available
Great thanks but I need a little help with the syntax to add a customn css class

eg can you show me the way to define a css class for font colors

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #92507 by Dũng Nguyễn Việt
Replied by Dũng Nguyễn Việt on topic What css classes are available
Hello.
This is the syntax to add css in to custom.css file.
.class-name {
color: color-code-you-want (ex: #000000; )
font-size: font-size-you-want (ex: 16px)
}
Thanks.
The following user(s) said Thank You: Ric McDonald

Please Log in or Create an account to join the conversation.

  • Ric McDonald
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 3 months ago #92528 by Ric McDonald
Replied by Ric McDonald on topic What css classes are available
I sort of understand
If I go to membership pro and insert the following into custom css
.color-red {FFFFFF;}
then in the custom field under css class
color-red
then the text should go red?
except it does not so I am missing some syntax can you advise what i have done wrong please

Please Log in or Create an account to join the conversation.