question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add styling for <select multiple> options

See original GitHub issue

When using a single <select>, the dropdown menu is generated by the browser, and thus the options cannot be styled. However, when using a <select multiple>, the options are actually part of the page content, and can be styled with CSS.

So, can styling for options of <select multiple> be added to Bootstrap?

CodePen

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MartijnCuppenscommented, Aug 19, 2020

OK, got it! Let’s still add the styling because Firefox and Chromium (desktop) support it.

“Support it” is a dangerous term to use here. I know Chrome and Firefox can handle colors differently on single selects for example which introduced this bug:

image

As I said before, the browser decides how the options are rendered. We can’t know for sure what the effects on all OS/browser combinations with (dark & light modes) will be now and in the future.

1reaction
ffooddcommented, Aug 19, 2020

@techboyg5 Those are screenshots of multiple select on iOS and Android 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing Multi-select Lists with CSS | HTML Goodies
Learn how to style web forms in this CSS tutorial for web developers. Learn all about coding CSS multi-select lists.
Read more >
Styling a <select multiple /> - html - Stack Overflow
My problem is that now I'm trying to style a <select multiple /> and I can't reset the appearance atribute to a default...
Read more >
Styling multiple selection menu control options (option ...
Styling multiple selection menu control options ( option elements) with CSS. This demo page is related to the article Styling form controls with...
Read more >
Custom Select Styles with Pure CSS
Modern CSS gives us a range of properties to achieve custom select styles that have a near-identical initial appearance for single, multiple ......
Read more >
Building a multi-select component - web.dev
A foundational overview of how to build a responsive, adaptive, and accessible, multiselect component for sort and filter user experiences.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found