title: Changing the select background color to blue when pressing the TAB key in Chrome like in IE
body: <p>In the example below I am trying to change the dropdown to the selection blue background-color '#3390FF' when pressing the TAB key in Chrome like in the IE. Further the blue background-color should be maintained for one option when pressing the up and down arraw. The text color #FFFFFF is required for the text too.</p>
  
  <p>Is there a way to change the background color of select menu to '#3390FF' when pressing the TAB key in Chrome by just using CSS?  </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;style&gt;
  select:focus-within{
     background-color: #3390FF;
     color:#FFFFFF;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  
  &lt;h1&gt;The option selected attribute&lt;/h1&gt;
  
  &lt;label for="cars1"&gt;Choose a car:&lt;/label&gt;
  
  &lt;select id="cars1"&gt;
    &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
    &lt;option value="saab"&gt;Saab&lt;/option&gt;
    &lt;option value="vw"&gt;VW&lt;/option&gt;
    &lt;option value="audi" selected&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  &lt;select id="cars2"&gt;
    &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
    &lt;option value="saab"&gt;Saab&lt;/option&gt;
    &lt;option value="vw"&gt;VW&lt;/option&gt;
    &lt;option value="audi" selected&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vAmqR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vAmqR.png" alt="enter image description here"></a></p>