I am encountering an issue with the lines
between the OR
. I need to ensure that they do not extend beyond their specified boundaries.
To view the code on codesandbox, please visit HERE
EXPECTED OUTPUT
https://i.sstatic.net/IIslv.png
CODE
const OR = styled.div`
display: flex;
flex-direction: row;
color: #5C5C5C;
font-size: 14px;
&:before, &:after {
content: "";
flex: 1 1;
border-bottom: 1px solid;
border-color: #A1A1A1;
margin: auto;
}
&:before {
margin-right: 10px
}
&:after {
margin-left: 10px
}
}
`;