@media query
is used for special devices.
In the example below @media query
is for devices with width less than or equal to 600px
#main {
width: 70%;
float: left;
padding: 0 30px;
box-sizing: border-box;
}
#sidebar {
width: 30%;
float: right;
padding: 0 30px;
box-sizing: border-box;
}
@media(max-width:600px) {
#main {
width: 100%;
float: none;
}
#sidebar {
width: 100%;
float: none;
}
}