Change font for a checkbox label

asked 2018-09-12 04:11:53 +0800

csa0 gravatar image csa0
3 1

How can I change the font for the label of a checkbox? The sclass attribute only applies to the outer span and not the label.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-12 11:36:46 +0800

MDuchemin gravatar image MDuchemin
2490 1 6
ZK Team

Hi csa0,

Simplest option in my opinion is to use a descendant combinator in your CSS rule to target the label inside of the checkbox

have a look on this fiddle

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2018-09-12 04:11:53 +0800

Seen: 5 times

Last updated: Sep 12 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More