.with-side .side{left: 20px; position: absolute; transition: all 0.3s ease 0s; width: 140px;} .with-side .main{margin-left: 160px; margin-right: 0; transition: all 0.3s ease 0s;}