Berikut adalah contoh script sederhana auto mobile yang bisa kita tambahkan sesuai kebutuhan desain website kita:
<style type=’text/css’>
@media only screen and (max-width: 1024px) {
.fades{
width: 1024px;
height: auto;
display: block;
}
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
.fades{
width: 768px;
height: auto;
display: block;
}
}
@media only screen and (max-width: 767px) {
.fades{
width: 767px;
height: auto;
display: block;
}
}
@media only screen and (min-wdth: 480px) and (max-width: 767px) {
.fades{
width: 767px;
height: auto;
display: none;
}
}
@media only screen and (max-width: 479px) {
.fades{
width: 479px;
height: auto;
display: none;
}
}@media only screen and (max-width: 225px) {
.fades{
width: 225px;
height: auto;
display: none;
}
}</style>
Demikian sharing kami tentang Script CSS Supaya Website Auto Mobile, silakan anda kembangankan sesuai dengan kebutuhan anda, semoga bermanfaat.