miércoles, 21 de noviembre de 2018

CSS - Media Queries

noviembre 21, 2018 // by Alex // // No comments

En este caso el requerimiento es trabajar sobre los anchos de pantallas, para acomodarlos a las pantallas menores a computadores de escritorios como tablets y smartphones.

Entre un valor mayor a uno menor

CSS

@media only screen and (max-width:414px) and (min-width:320px){ }

De menos hasta un valor

CSS

@media (max-width: 600px) {}

GIT HUB

CSS

/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1281px) {



}

/*
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {



}

/*
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {



}

/*
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {



}

/*
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {



}

/*
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {



}

0 comentarios:

Publicar un comentario