Skip to content

Instantly share code, notes, and snippets.

@wireinet
Created April 30, 2020 07:51
Show Gist options
  • Save wireinet/9c1e93494acb60cf728507eb16310c82 to your computer and use it in GitHub Desktop.
Save wireinet/9c1e93494acb60cf728507eb16310c82 to your computer and use it in GitHub Desktop.
.select select {
display: block;
width: 100%; /* от ширины блока div */
padding: .75rem 2.5rem .75rem 1rem;/* отступы от текста до рамки */
background: none; /* убираем фон */
border: 1px solid #ccc; /* рамка */
border-radius: 3px;/* скругление полей формы */
-webkit-appearance: none;/* Chrome */
-moz-appearance: none;/* Firefox */
appearance: none;/* убираем дефолнтные стрелочки */
font-family: inherit;/* наследует от родителя */
font-size: 1rem;
color: #444;
}
.select:after {
content: "";
display: block;
border-style: solid;
border-width: 6px 5px 0 5px;
border-color: #000 transparent transparent transparent;
pointer-events: none;
position: absolute;
top: 50%;
right: 1rem;
z-index: 1;
margin-top: -3px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment