Skip to content
Discussion options

You must be logged in to vote

Here's what I did to make your solution work:

<div></div>
<div></div>

<style>
  body {
    background: #6592CF;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  div {
    width: 40px;
    height: 182px;
    background: #6592CF;
    border-radius:0 70px 70px 0;
    border: 30px solid#243D83;
    border-left: 0;
    margin:-15px -15px -17px;
  }
  div:nth-child(2) {
    transform: scaleX(-1);
  }
</style>

Increasing div's height by 2px and add the additional left & bottom margins (also a 2px difference for the bottom margin value) seems to make it for the 100% match.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ruanha
Comment options

@aarthvaen
Comment options

Answer selected by ruanha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants