Bootstrap CSS media boyutları örneği

Bootstrap CSS media boyutları örneği

/* Extra small devices (portrait phones, less than 576px)
 No media query since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {  }

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {  }

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {  }

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {  }

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    body{
        margin-bottom: 50px;
    }
}

/* Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) {  }

/* Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {  }

/* Large devices (desktops, less than 1200px)*/
@media (max-width: 1199.98px) {  }

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {  }

/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {  }

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {  }

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {  }

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {  }

/* Example
// Apply styles starting from medium devices and up to extra large devices*/
@media (min-width: 768px) and (max-width: 1199.98px) {  }

09.07.2019|Kategori : CSS
Sosyal Medya Aracılığıyla Paylaş

Yorumlar

Yorum Yaz