HTML Select not showing default text or selected text - drop down showing items correctly

I have an HTML Select not showing default text, also not showing selected text.

When clicked, the drop down shows the values, and the user is able to select items properly.  The search feature is working it is just not showing which items were selected.

I'm not sure if this is a browser update issue or something I can control.

The example is at http://fbcolifegroups.com

thanks.
LVL 2
axessJoshAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Chris StanyonWebDevCommented:
It's down to the styles you've set. You're setting the height of your <select> to 3rem and then you're setting a padding on it that's so large that you're effectively moving the text out of view. Either remove the height of the <select> or reduce the padding:

search-form-styles.css - line 42 // height is set here
the-core-styles.css - line 723 // padding is set here
0
kenfcampCommented:
You forgot to identify your default "option" as selected

Example

Change
<select name="meeting-time"><option value="">Select Meeting-time</option><option value="1100-am">11:00 AM</option><option value="830-am">8:30 AM</option><option value="940-am">9:40 AM</option></select>

Open in new window


to
<select name="meeting-time"><option value="" selected>Select Meeting-time</option><option value="1100-am">11:00 AM</option><option value="830-am">8:30 AM</option><option value="940-am">9:40 AM</option></select>

Open in new window

0
lenamtlCommented:
Hi,

Don't forget to change line 711
I have commented the padding and it is working fine
the-core-styles.css

select {
  background: #fff;
  color: #1f1f1f;
  font-family: 'Quattrocento Sans';
  font-size: 16.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 28px;
 /* padding: 12px 15px; */
  border: 1px solid rgba(0, 0, 0, 0.13);
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  outline: none;
  width: 100%;
}

Open in new window


But I would not use UL /LI to display Select input.
You can use column instead or use  display: inline; or display: inline-block
0
Chris StanyonWebDevCommented:
@lenamtl - If you change line 723, there's no need to change line 711. Changing line 711 will change the padding on ALL inputs, not just the <select> ones.
0

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
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
HTML

From novice to tech pro — start learning today.