
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
Hide Dropdown Arrow for Select Input with CSS appearance
We use the appearance property to style an element according to the platform-native style of the user’s operating system.
Syntax
The syntax of CSS appearance property is as follows −
Selector { appearance: /*value*/; -webkit-appearance: /*value*/; /*for Safari and Chrome */ -moz-appearance: /*value*/; /*for Firefox */ }
Example
The following examples illustrate CSS appearance property.
<!DOCTYPE html> <html> <head> <style> input[type=number] { width: 40px; -moz-appearance: textfield; } input[type=number]:hover { background-color: #e3f5a1; } input::-webkit-inner-spin-button { -webkit-appearance: none; } </style> </head> <body> <p>Type/Scroll to change value</p> <input type="number" value="6"> </body> </html>
This gives the following output
Example
<!DOCTYPE html> <html> <head> <style> select { width: 20%; appearance: none; -webkit-appearance: none; -moz-appearance: none; } </style> </head> <body> Hiding dropdown arrow<br/><br/> <select> <option value="none" selected disabled hidden> Select color </option> <option>Red</option> <option>Blue</option> <option>Green</option> <option>Yellow</option> <option>Orange</option> </select> </body> </html>
This gives the following output
- Related Articles
- How to style a select dropdown with only CSS?
- How do I style a
- Custom Checkbox with CSS appearance Property
- Create a caret arrow icon that represents dropdown button with Bootstrap
- Add arrow in tooltip with CSS
- Custom Radio Buttons with CSS appearance Property
- How to hide scrollbars with CSS?
- How to search for items in a dropdown menu with CSS and JavaScript?
- Hide an element from view with CSS
- How to remove input background on select in CSS
- How to select text input fields using CSS selector?
- Arrow to the bottom of the tooltip with CSS
- Arrow to the left of the tooltip with CSS
- Arrow to the right of the tooltip with CSS
- Arrow to the top of the tooltip with CSS

Advertisements