How to style drop-down list as shown in the screenshot?


you need to set the background using one point and the height (select,option)
March 23rd 20 at 19:33
2 answers
March 23rd 20 at 19:35
background-color: #808080;
March 23rd 20 at 19:37
Good day! in css there is a pseudo-class, which stylized the even and odd elements.

An example of the links
<!DOCTYPE html>
the <head>
 <meta charset="utf-8">
 table { 
 width: 100%; /* Width of table */
 border-spacing: 0; /* Distance between cells */
 tr:nth-child(2n) {
 background: #f0f0f0; /* background Color */
 tr:nth-child(1) {
 background: #666; /* Color background */
 color: #fff; /* text Color */
the <body>
 <table border="1">
 the <tr> 
 the <tr> 
the <tr>
the <tr>
the <tr>

Find more questions by tags CSS