title: Getting drop down menu links in a full width css menu drop down to line up with their parent element
body: <p><a href="https://i.stack.imgur.com/JctLc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JctLc.png" alt="enter image description here"></a>I have a navigation which uses a full width drop down sub-menu (the about drop down) but I am struggling to align the links within the submenu centeraly underneath their parent. I also need this to be responsive so the sub-links stay central no matter the view width.</p>
  
  <p>Could anyone help me by telling me where I am going wrong or what I would need to do to achieve this effect?</p>
  
  <p>Thanks in advance for any help.</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-css lang-css prettyprint-override"><code>.navigation--main li:hover&gt;ul {
    display: flex;
    justify-content: center;
  }
  
  ul.navigation--main li ul {
    background: #000;
    color: #fff;
    display: none;
    position: absolute;
    top: 114px;
    left: 0;
    width: 100%;
  }
  
  ul.navigation--main li ul li {
    padding: 1.5em 0.5em;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="navigation--container"&gt;
    &lt;div class="logo"&gt;
      &lt;a href="#"&gt;&lt;img src="assets/img/Group 85.svg" alt="ORRAA Logo" class="homeLogo" height="78.93" width="260" /&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="navigation"&gt;
      &lt;ul class="navigation--main"&gt;
        &lt;li&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="about.php"&gt;About&lt;/a&gt;
          &lt;ul&gt;
            &lt;li&gt;
              &lt;a href=""&gt;&lt;/a&gt;Ocean risk&lt;/li&gt;
            &lt;li&gt;
              &lt;a href=""&gt;&lt;/a&gt;About ORRAA&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Membership&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Governance&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="navigation--social-icons"&gt;
        &lt;li&gt;
          &lt;a href="#"&gt;&lt;img src="assets/img/facebook.svg" alt="facebook"&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;a href="#"&gt;&lt;img src="assets/img/instagram.svg" alt="instagram"&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;a href="#"&gt;&lt;img src="assets/img/Path 22.svg" alt="twitter"&gt;&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>