Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Styling type=radio in css

    Is there a way to style all radio buttons on all pages using css?

    using input{background:red} will render also text boxes when i only want radio buttons to use such style....

    hope not a javascript method...hahaha

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You will need to give them a class and style them that way. You could use
    Code:
    input[type=radio] {
    /*css stuff*/
    }
    Unfortunately it doesn't work in IE6 and you can't really style the radio input anyways. If you tried setting a background color to it in Firefox it wouldn't show.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts
    hm....ok ,thanks for the code...but it seems not to work for me...hahaha

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Read my post carefully. The code I posted WILL NOT work in IE6 and Firefox won't accept the background color.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •