ASP.net Examples of CSS styling for a ListBox

Hi

I am looking for free online examples of CSS styling for a ListBox control in ASP.net


Thanks
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technology NinjaCommented:
Hi Murray,

Listbox can be styled like any other HTML control. Is there something specific you want to achieve?
Also, I was wondering have you seen Jquery UI? https://jqueryui.com/selectmenu/

Regards,
Chinmay.
Zakaria AcharkiAnalyst DeveloperCommented:
Hi Murray, Take a look at Bootstrap List-Box :

https://documentation.devexpress.com/AspNetBootstrap/117910/Data-Editors/List-Box

Else you may need to use select2 with multiple options.
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi Zakaria. Thanks, but I am specifically looking for css code and not third party software that I have to pay for
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Zakaria AcharkiAnalyst DeveloperCommented:
https://select2.org/getting-started/basic-usage

Select2 is an open source library if the tags format interest you?

https://jsfiddle.net/NathanFriend/rLmztr2d/

Then you could use it it's so simple. you need just to include the CSS file and JS file then :

$('#listbox-id-here').select2({
    placeholder: 'Select a month'
});

Open in new window


And your list box will be adjusted.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Zakaria AcharkiAnalyst DeveloperCommented:
Here is a live fiddle :

https://dotnetfiddle.net/M3a9ka
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
Zakaria AcharkiAnalyst DeveloperCommented:
Glad I could help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.