0

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
1

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

MDuchemin gravatar image MDuchemin
1336 1 4
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

Follow
2 followers

RSS

Stats

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

Seen: 5 times

Last updated: Sep 12

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