title: Making dropdown menu with flags using HTML, CSS and JS
body: <p>I try to create my first website and I want it to have a dropdown menu with multiple languages.</p>
  <p>My site uses only HTML, CSS, and JS. I don't use bootstrap.</p>
  <p>I tried to use the codes from the following <a href="https://stackoverflow.com/questions/60606265/how-to-make-a-languages-selector-button-with-flag-html-js">link</a> but the results I got were:</p>
  <p><a href="https://i.stack.imgur.com/Thnzh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Thnzh.png" alt="enter image description here" /></a></p>
  <p>It does not include the flag and it looks different from the other buttons in the row.</p>
  <p>What is did was adding to my main file (index.html) the following:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* chooseLang
   * ---------------------------------------------------- */
  var chooseLang = function() {
    $('.selectpicker').selectpicker();
  };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"&gt;&lt;/script&gt;`
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.2/js/bootstrap-select.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
  &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.2/css/bootstrap-select.min.css"&gt;
  &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/css/flag-icon.min.css"&gt;
  
  &lt;header id="header" class="row"&gt;
  
    &lt;nav id="header-nav-wrap"&gt;
      &lt;ul class="header-main-nav"&gt;
        &lt;li class="current"&gt;&lt;a class="smoothscroll" href="#home" title="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a class="smoothscroll" href="#about" title="about"&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a class="smoothscroll" href="#download" title="download"&gt;Download&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  
    &lt;select class="selectpicker" data-width="fit"&gt;
      &lt;option data-content='&lt;span class="flag-icon flag-icon-us"&gt;&lt;/span&gt; English'&gt;English&lt;/option&gt;
      &lt;option data-content='&lt;span class="flag-icon flag-icon-mx"&gt;&lt;/span&gt; Español'&gt;Español&lt;/option&gt;
    &lt;/select&gt;
  
    &lt;a class="header-menu-toggle" href="#"&gt;&lt;span&gt;Menu&lt;/span&gt;&lt;/a&gt;
  
  &lt;/header&gt;
  &lt;!-- /header --&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Basically, I wouldn't mind if it even was only 2 flag buttons without a menu.</p>