styling a radiobutton and checkbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    styling a radiobutton and checkbox

    hii,
    I have a radio button and check box. when ever there is a error in a form with the checkbox/radio button element .i need to mark its border red . i tried to add border property for the class of radio button.but did not work. any idea on this.just a css code to make the border of radio/checkbox red.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    It's been a long time since I've tried that so I may have forgotten something but I don't believe you can because the input element is fixed inside the browser. You can, however, wrap it in a <p> or <div> and style that.

    Comment

    Working...