I have a div named body-container .
I want to change the width of the div depending on the browser window size. I am using the flexbox model to do it, but the width is not changing according to the size of the browser window.
My CSS :
.body-container
{
display:flex;
display:-webkit-flex;
margin-top:20px;
margin-left:20px;
margin-right:20px;
box-shadow:2px 2px 2px #A8A8A8;
width:800px;
height:250px;
}
Is there something I need to do with the margin of the divider or is there any other way to make the divider completely flexibly (width wise).