Created
February 7, 2020 07:51
-
-
Save sonichandni/ba584027d73a07eea83a584e14672986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//html | |
<select class="myselect" size="3" id="searchContentType"> //size attribute is important without this itwont work | |
<option value="title">Video Title</option> | |
<option value="name">Name</option> | |
<option value="email">Email</option> | |
</select> | |
//css | |
select.myselect{ | |
border: none; | |
overflow: hidden; | |
} | |
select.myselect option { | |
width: auto; | |
float: left; | |
border: 1px solid; | |
text-align: -webkit-center; | |
border-color: darkgray; | |
padding: .5rem; | |
margin: .5rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment