@media(min-width:750px){ .newfooter{} .newfooter>div{float: left;} .newfooter>div:nth-child(2){padding-left: 23.8vw;} } @media(max-width:750px){ .newfooter>div{width: 100%; clear: both; margin-top: 20px;} }