Mashiane Expert Licensed User Longtime User Jan 3, 2018 #1 Hi How can I apply this to some of my checkboxes and not all of them? I dont want to load this on the form B4X: .check-box .box { -fx-background-color: white; -fx-border-color:grey; -fx-border-radius:3px; } .check-box:selected .mark { -fx-background-color: white; } .check-box:selected .box { -fx-background-color: #28a3f4; } Thanks
Hi How can I apply this to some of my checkboxes and not all of them? I dont want to load this on the form B4X: .check-box .box { -fx-background-color: white; -fx-border-color:grey; -fx-border-radius:3px; } .check-box:selected .mark { -fx-background-color: white; } .check-box:selected .box { -fx-background-color: #28a3f4; } Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 3, 2018 #2 Moved to the questions forum. Change the selector to: B4X: .MyCheckbox1 .box{ ... } Add the CSS class to the checkbox: B4X: Checkbox1.StyleClasses.Add("MyCheckbox1") Upvote 0
Moved to the questions forum. Change the selector to: B4X: .MyCheckbox1 .box{ ... } Add the CSS class to the checkbox: B4X: Checkbox1.StyleClasses.Add("MyCheckbox1")