angie
05-20-2008, 11:08 AM
Hi,
Does anyone know how to style a checkbox so that it has no border? Changing the border colour doesn't work as checkboxes have a gradient so they are the specified colour at the top but then go darker towards the bottom. I've tried extending CheckBoxIcon skin and settind the skin to be my new class, and also tried creating a new class and copying the code from CheckBoxIcon and removing all references to drawingthe border, but it doesn't seem to work. Any ideas? Also, when it's disabled I'd also like to extend it to show a X when the value is false. Any ideas how I can do this without creating a composite component that shows either a checkbox when endabled or an image when disabled? Thanks.
Does anyone know how to style a checkbox so that it has no border? Changing the border colour doesn't work as checkboxes have a gradient so they are the specified colour at the top but then go darker towards the bottom. I've tried extending CheckBoxIcon skin and settind the skin to be my new class, and also tried creating a new class and copying the code from CheckBoxIcon and removing all references to drawingthe border, but it doesn't seem to work. Any ideas? Also, when it's disabled I'd also like to extend it to show a X when the value is false. Any ideas how I can do this without creating a composite component that shows either a checkbox when endabled or an image when disabled? Thanks.