title: Flex container items exceeding width
body: <p>Hello I have a problem where my container is exceeding the maximum allowed width of my flex container (with justify space - between)</p>
  
  <p>basically i divided my 3 children into 33.33%, but even so it exceeds the width:</p>
  
  <p><strong>img:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/YfqRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YfqRa.png" alt="enter image description here"></a></p>
  
  <p><strong>my jsx****:</strong></p>
  
  <pre><code>const NavAcessibility = props =&gt; {
    return (
      &lt;Accessibility&gt;
        &lt;ul&gt;
          &lt;li&gt;
            &lt;a&gt;
              &lt;p&gt;Acessibilidade&lt;/p&gt;
            &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a&gt;A-&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a&gt;A+&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a&gt;
              &lt;FontAwesomeIcon
                className="adjust"
                icon={faAdjust}
                size="1x"
                fixedWidth
                color="white"
              /&gt;
            &lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/Accessibility&gt;
    );
  };
  
  const ItemsTop = () =&gt; {
    return (
      &lt;&gt;
        &lt;ImgWrap&gt;
          &lt;img src={LogoImg} /&gt;
        &lt;/ImgWrap&gt;
        &lt;SearchContainer&gt;
          &lt;IconContainer&gt;
            &lt;FontAwesomeIcon
              className="searchIcon"
              icon={faSearch}
              size="2x"
              fixedWidth
              color="white"
            /&gt;
          &lt;/IconContainer&gt;
          &lt;input placeholder="Pesquisar" /&gt;
        &lt;/SearchContainer&gt;
      &lt;/&gt;
    );
  };
  
  const TopHeader = () =&gt; {
    return (
      &lt;ContainerTop&gt;
        &lt;HeaderTop&gt;
          &lt;ItemsTop /&gt;
          &lt;NavAcessibility /&gt;
        &lt;/HeaderTop&gt;
      &lt;/ContainerTop&gt;
    );
  };
  </code></pre>
  
  <p>my css:</p>
  
  <pre><code>export const ContainerTop = styled.div`
    position: relative;
    width: 100%;
    background: red;
    box-shadow: 0 0 5px rgba(18, 23, 39, 0.2);
  `;
  
  export const HeaderTop = styled.div`
    ${mxw80}
    padding-bottom: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
  `;
  
  export const ImgWrap = styled.div`
    width: 33.3333%;
    display: flex;
    align-items: center;
    &amp; &gt; img {
      width: 80px;
    }
  `;
  
  export const IconContainer = styled.div``;
  export const SearchContainer = styled.div`
    display: inline-flex;
    align-items: center;
    width: 33.3333%;
    border-radius: 25px;
    overflow: hidden;
    height: 50px;
    border: 0;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.07);
    transition: all 0.4s;
    margin-right: 20px;
    ${IconContainer} {
      ${flexAlignCenter}
      width: 50px;
      padding: 0.5rem 1.3rem;
      height: 100%;
      &amp; &gt; svg {
        font-size: 1.3em;
        color: white;
      }
    }
    &amp; &gt; input {
      background: transparent;
      width: calc(100% - 50px);
      height: 100%;
      border: 0;
      padding: 0.5rem 0.5rem 0.5rem 0.5rem;
      outline: none;
      color: white;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      box-sizing: initial;
      font-family: Roboto, Arial, sans-serif;
      ::placeholder {
        font-size: 16px;
        color: white;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        box-sizing: initial;
        font-family: Roboto, Arial, sans-serif;
      }
    }
  `;
  
  export const Accessibility = styled.nav`
    width: 33.3333%;
    height: 100%;
    &amp; &gt; ul {
      ${flexAlignCenter}
      width:100%;
      flex-wrap: wrap;
      height: auto;
      justify-content: center;
    }
    &amp; &gt; ul &gt; li {
      position: relative;
      display: inline-block;
      font-family: "Open Sans", sans-serif;
      font-size: 13px;
      line-height: 24px;
      color: #fff;
      user-select: none;
    }
    &amp; &gt; ul &gt; li:nth-child(2) {
      cursor: not-allowed;
      pointer-events: none;
      font-size: 18px;
      font-weight: 700;
      font-style: italic;
      opacity: 0.5;
      padding: 0 9px;
    }
    &amp; &gt; ul &gt; li:nth-child(3) {
      font-size: 18px;
      font-weight: 700;
      font-size: 18px;
      font-weight: 700;
      padding: 0 9px;
    }
    &amp; &gt; ul &gt; li &gt; a {
      font-family: "Open Sans", sans-serif;
      font-size: 13px;
      line-height: 24px;
    }
    &amp; &gt; ul &gt; li &gt; a &gt; p {
      position: relative;
      display: inline-block;
      pointer-events: none;
      padding: 0 9px;
    }
  `;
  </code></pre>
  
  <p>example:</p>
  
  <p><a href="https://codesandbox.io/s/long-monad-m54pu" rel="nofollow noreferrer">https://codesandbox.io/s/long-monad-m54pu</a></p>
  
  <p>I can't find where I went wrong.</p>