Hudson_mod Posted September 20, 2020 Share Posted September 20, 2020 Site URL: https://www.theministryofdesign.co.uk @tuanphan is it possible to style radio buttons, drop downs & check boxes within forms? I’ve managed to do input fields & text styles but can’t work out how to do the radio boxes etc. Any help would be greatly appreciated. otorres_app 1 Link to comment
tuanphan Posted September 21, 2020 Share Posted September 21, 2020 Where is form? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Hudson_mod Posted September 21, 2020 Author Share Posted September 21, 2020 Hi, https://theministryofdesign.co.uk/projects/survey PW: helpmetuan Thanks for the advice. Link to comment
tuanphan Posted September 22, 2020 Share Posted September 22, 2020 Change color, size or? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Hudson_mod Posted September 23, 2020 Author Share Posted September 23, 2020 Hi @tuanphan, I'm looking to change the color and size to fit in more with the rest of the site so the dot on the boxes is orange, the circle around is white. The same for drop downs too really, just so they fit in a bit better. Thanks for the help. Link to comment
tuanphan Posted September 25, 2020 Share Posted September 25, 2020 You can't change radio checkbox color with CSS. I also have this problem on my client site. Still testing some code to solve this. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jaeveedee Posted October 12, 2020 Share Posted October 12, 2020 following... My little bit of research into this seems to be that you need to hide the original checkbox and create a new pseudo element. Then you need to bind the click to it but I haven't gotten it to work. Link to comment
tuanphan Posted October 13, 2020 Share Posted October 13, 2020 (edited) just finished on a client site. yes, you need to hide original, create new checkbox with JavaScript, very time consuming If you share link to your site, we can help easier. Edited October 13, 2020 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jaeveedee Posted October 13, 2020 Share Posted October 13, 2020 Thanks @tuanphan but my client decided to lose the checkbox altogether! That would be a great resource to share here though. It has come up for me before since every browser has it's own different look. Link to comment
Hudson_mod Posted October 13, 2020 Author Share Posted October 13, 2020 @jaeveedee, @tuanphan - I've managed to alter the check box & radio box elements (see below) - it's a little more work to change the drop down selection menus and I haven't had any success with those yet. Any input would be great… /* Radio Buttons */ input[type="radio"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .option input[type="radio"]:active { cursor:pointer; width:30px; height:30px; background-color:#0e1021; border-radius:50%; } /* Selected */ .option input[type="radio"]:checked { cursor:pointer; width:30px; height:30px; background-color:#e9530d; border-radius:50%; } .option input[type="radio"] { /* un-selected */ background-clip: content-box; border: 4px solid #e9530d; border-radius: 50%; content: " "; cursor:pointer; width:30px; height:30px; } /* check boxes */ input[type="checkbox"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .option input[type="checkbox"]:active { cursor:pointer; width:30px; height:30px; background-color:#0e1021; border-radius:50%; } /* Selected */ .option input[type="checkbox"]:checked { cursor:pointer; width:30px; height:30px; background-color:#e9530d; border-radius:50%; } .option input[type="checkbox"] { /* un-selected */ background-clip: content-box; border: 4px solid #e9530d; border-radius: 50%; content: " "; cursor:pointer; Chele 1 Link to comment
herzworks Posted November 8, 2021 Share Posted November 8, 2021 so awesome @Hudson_mod. You're missing a height/width on the unselected checkbox but otherwise working perfectly for me! Chele and Hudson_mod 1 1 founder of herz.works and maker of dope playlists. Link to comment
Hudson_mod Posted November 9, 2021 Author Share Posted November 9, 2021 @herzworks probably a copy paste error from me in the thread 😄 herzworks 1 Link to comment
OldLadyStudio Posted July 14, 2022 Share Posted July 14, 2022 (edited) Hey everyone! Two things: 1) Is there a way to change the colour of the text of the Checkbox and Radio options? 2) Is there a way to change the colour of the active text input in the field? See below: I've made this red just as an example (so I can see what I'm testing easily). I eventually want to be able to put the form on a dark background. Thank you, thank you! Edited July 15, 2022 by OldLadyStudio Added more information and questions! :) Link to comment
tuanphan Posted July 15, 2022 Share Posted July 15, 2022 8 hours ago, OldLadyStudio said: Hey everyone! Two things: 1) Is there a way to change the colour of the text of the Checkbox and Radio options? 2) Is there a way to change the colour of the active text input in the field? See below: I've made this red just as an example (so I can see what I'm testing easily). I eventually want to be able to put the form on a dark background. Thank you, thank you! Can you share page url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Jadecam Posted November 12, 2022 Share Posted November 12, 2022 Was messing around trying to figure this out too and did this: For styling checkbox stuff (not the actual check box though): .form-wrapper .field-list .option { } For styling the drop down and text: .form-wrapper .field-list .field select { } Not sure if this is good/logical but it worked for me! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment