I'm currently working on a project that involves creating border lines between divs to achieve a design similar to the one shown in this design jpeg.
However, I've only managed to reach an output jpeg where the merging is not quite right.
The CSS code snippet looks like this:
export const Container = styled.div`
&:nth-child(even){
justify-content: right;
flex-direction: row-reverse;
text-align: right;
border-right: 3px solid rgba(255, 255, 255, 0.12);
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
position: relative;
}
&:nth-child(odd){
border: 3px solid rgba(255, 255, 255, 0.12);
border-radius: 30px 30px;
border-right: none;
}`
And here's how it appears in React-HTML:
<Container>
{N.map((elementInArray, index) => (
<Bunch key={index}>
<Box className={'box'+elementInArray}>
<InnerBox/>
</Box>
<TextBox2 className={'textbox'+elementInArray}>
<Heading1>{year}</Heading1>
<Heading3>{'Q' + elementInArray}</Heading3>
<Para>{text}</Para>
</TextBox2>
</Bunch>
)
)}
</Container>