iwato Posted February 19, 2018 Share Posted February 19, 2018 BACKGROUND: Please compare the Select Language <select> element option menu under the headings Free Webinar and Newsletter/Subscribe found in the navigation bar on the Grammar Captive main page. Therein lies the heart of the following question. QUESTION: How does one set the background and text colors of the <optgroup> element so that they appear properly in Firefox? Neither optgroup { background: black; color: white; } nor optgroup { background-color: black; color: white; } appear to work. Roddy Link to comment Share on other sites More sharing options...
iwato Posted February 21, 2018 Author Share Posted February 21, 2018 appear => appears Sorry, the host of Grammar Captive errs on occasion. Roddy Link to comment Share on other sites More sharing options...
Ingolme Posted February 21, 2018 Share Posted February 21, 2018 The styling of form elements is very restricted. You can read more about it here: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms You can't style optgroup elements. If it's very important to give style to a structure similar to that one you'll have to create your own imitation of a dropdown using Javascript. 1 Link to comment Share on other sites More sharing options...
iwato Posted February 28, 2018 Author Share Posted February 28, 2018 Yeah, i discovered that Firefox has the element locked. Does this mean that I have to reformat the background color in order to get the element to perform? The text is simply impossible to read. Roddy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now