my css so I can get the browser width and height:
body, html {
margin:0;
padding:0;
line-height: 1.5em;
height: 100% !important;
width: 100% !important;
}
this is what I want its' children to center:
<div style={{marginLeft: 'auto', marginRight: 'auto', width: 'inherit', height: 'inherit'}}>
<ul style={{listStyle: 'none'}}>
{this._renderTodos()}
</ul>
<Button primary onClick={()=>this._loadMore()}> Load More </Button>
</div>
I wanted the parent div to inherit the browsers' width and height, I used margin left and right equal to auto, but it's not centering?