JaredL Posted September 13, 2019 Report Share Posted September 13, 2019 I would like to change the attributes of the drop down. Color, padding etc. I don't like the blue color. Thank you for any help! Quote Link to comment Share on other sites More sharing options...
Alison Posted September 13, 2019 Report Share Posted September 13, 2019 Hi @JaredL, Options (attributes of the dropdown) of an html “select” element can be styled, however very minimally, as the styling for these elements is handled by the user's OS. Background-color, color and font-weight can be changed for the option elements, for example: select option { background-color: green; font-weight: bold; color: red; } Quote Link to comment Share on other sites More sharing options...
JaredL Posted September 13, 2019 Author Report Share Posted September 13, 2019 Hello Alison thank you for your response. Where do I place this code? in the header & Footer or I go to styling? thanks! Quote Link to comment Share on other sites More sharing options...
Alison Posted September 13, 2019 Report Share Posted September 13, 2019 Hi @JaredL, You can add it into the Header after disabling HTML editor on th Advanced tab: <style> select option { background-color: green; font-weight: bold; color: red; } </style> or you can add the code into the User-defined styles in to the Styles menu: select option { background-color: green; font-weight: bold; color: red; } Quote Link to comment Share on other sites More sharing options...
JaredL Posted September 13, 2019 Author Report Share Posted September 13, 2019 Thank you Alison this is great help. Jared Alison 1 Quote Link to comment Share on other sites More sharing options...
SunakoChan Posted September 28, 2019 Report Share Posted September 28, 2019 Hi- If you plan to put the style in your DataPage please make sure that you add !important syntax so that the style that you set will be prioritize.The !important property in CSS is used to provide more weight (importance) than normal property. In CSS, the !important means that “this is important”, ignore all the subsequent rules, Example: <style> select option { background-color: green!important; font-weight: bold!important; color: red!important; } </style> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.