check box styles

  • Thread starter Thread starter Vic
  • Start date Start date
V

Vic

Hi.

Is it possible to make web form's check box control (and/or an HTML check
box control) to have a thin fixed line for a box instead of a 3d box style.

I'd like the check box to look similar to a text box with BorderStyle
property set to 'Solid'. When I set BorderStyle to 'Solid' for a check box,
the whole control gets a border around it. All I want is a single line
border around the box that contains a check mark.

Thanks for any help.

VR
 
I flipped through the HTML documentation, and didn't see a style property
you can set to get a 2d version of the checkbox. (That doesn't mean it
doesn't exist, just that I didn't find it.) If the visual is important, you
can make the style of the checkbox hidden, and then have an image that, in
onclick, sets the image to another image (with a check in it) and
simultaneously sets the value of the hidden checkbox so that, on post back,
you can just read the checkbox rather than checking the image properties.
 
Chris,

Thanks for the post -- sounds like a great idea. I am not sure though, how
I can hide the check box's native image. You mention making "the style of
the checkbox hidden", how would I do it?

Thanks,
VR
 
Back
Top