There is such a drop-down list.
select { width: 180px; padding: 3px 5px; height: 25px; line-height: 25px; background: transparent; border: none; cursor: pointer; } div { width: 150px; height: 25px; overflow: hidden; background-color: #ebebeb; background-image: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center; background: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center, -webkit-linear-gradient(bottom, #dbdbdb, #fafafa); background: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center, -moz-linear-gradient(bottom, #dbdbdb, #fafafa); background: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center, -ms-linear-gradient(bottom, #dbdbdb, #fafafa); background: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center, -o-linear-gradient(bottom, #dbdbdb, #fafafa); background: url(http://cdn.joxi.ru/media/cache/preview/uploads/prod/2014/05/13/f8e/b5f/e82b8e0d4ed7fe4b8eaef79b94cff9022da760a7.jpg) no-repeat right center, linear-gradient(bottom, #dbdbdb, #fafafa); border: 1px solid #797a7c; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } <div> <select> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> </select> </div> Questions:
- How to make the width of options equal to the width of the stylized select?
- How to remove a stroke around all options?
I would like to solve these issues on pure CSS , or with minimal implementation of JavaScript (jQuery) .