I'v searched the SO but none is same question.
.container {
display: flex;
justify-content: center;
}
.aside-left {
width: 200px;
}
<div class="container">
<aside class="aside-left">
menu1 menu2
</aside>
<div class="content">
pagesssssssssssss
</div>
<footer>
copyright
</footer>
</div>
requirements:
- the content div always center in window, ignore the aside div
- when window width < 991px, aside display none;
- better use the flex not the float solution
first-item-on-center-and-second-item-at-last-in-flex is relative but the aside tag still influenced the content div
current I know how center the container, but I wish can center the content div in the window, and aside left should float left on the content div