Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

479
Views
Applying css styling for native material select

I have two dropdown below:

  1. Basic Mat select
  2. Basic native select
<h4>Basic mat-select</h4>
<mat-form-field appearance="fill">
  <mat-label>Favorite food</mat-label>
  <mat-select>
    <mat-option *ngFor="let food of foods" [value]="food.value">
      {{food.viewValue}}
    </mat-option>
  </mat-select>
</mat-form-field>

<h4>Basic native select</h4>
<mat-form-field appearance="fill">
  <mat-label>Cars</mat-label>
  <select matNativeControl required>
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </select>
</mat-form-field>

I need to use 2nd one, Basic native select and apply css styling which looks similar to 1st one. I dont want exact same but somewhat similar, is it possible?

refer this code https://material.angular.io/components/select/overview

enter image description here

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

From what I know and have experienced there's no simple way to do it using just CSS. You will also need JS.

These two links should help:

  1. [https://moderncss.dev/custom-select-styles-with-pure-css/][2]
  2. [https://www.w3docs.com/snippets/css/how-to-style-a-select-box-drop-down-with-only-css.html][3]
  3. Additionally you can checkout more examples on codepen.io
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!