CSS: make drop-down menu as wide as top bar
<p>I've made a top bar that contains drop-down MENU button on the right side. But this drop-down content has exactly the same size (width) as my MENU button. Finally - my goal is to make this drop-down content as wide as the top bar is.</p>

<p>My HTML code looks like this:</p>

<pre><code>&lt;div id="top-bar"&gt;
  &lt;div class="dropdown"&gt;
    &lt;button class="dropbtn"&gt;MENU&lt;/button&gt;
    &lt;div class="dropdown-content"&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>And more important part - CSS:</p>

<pre><code>#top-bar{
  left: 0;
  top: 0;
  float: left;
  width:100%;
  height:40px;
  background-color: black;
}
.dropbtn {
    background-color: blue;
    color: white;
    height: 40px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}
.dropdown {
    float: right;
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    float: left;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
    color: black;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
    display: block;
    width: 100%;
    float: left;
    left: 0;
}
.dropdown:hover .dropbtn {
    background-color: blue;
}
</code></pre>

<p>If you want to see how does it look like <a href="https://jsfiddle.net/bimbochobot/69uts0dr/2/" rel="nofollow">HERE</a> is jsFiddle link.<br>
Don't you have any idea how to solve my problem?</p>