i have div wrapper with header and container divs and i want to place these in the center of the page.
below is the code,
return (
<Wrapper>
<Header><svg/></Header>
<Content>
<span>first</span>
<span> second</span>
<Actions>
<button> cancel</button>
</Actions>
</Content>
</wrapper>
);
const Wrapper = styled.div`
width: 100vw;
background-color: white;
height: calc(100vh - 20px);
position: relative;
`;
const Content = styled.div`
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
`;
const Actions = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
`;
const Header = styled.div`
position: absolute;
width: 100%;
display: flex;
justify-content: center;
`;
how can i make the header and content divs to be in the center of the page using css. could someone help me with this. thanks.