DekGenius.com
CSS
css media queries
@media only screen and ( max-width : 1200 px ) {
}
@media only screen and ( max-width : 600 px ) {
}
@media only screen and ( max-width : 425 px ) {
}
media query
@media only screen and ( max-width : 600 px ) {
body {
background-color : lightblue ;
}
}
css media query
@media ( min-width : 576 px ) {
.selector {
background-color : #f00 ;
}
}
@media ( min-width : 768 px ) { }
@media ( min-width : 992 px ) { }
@media ( min-width : 1200 px ) { }
media query in css
@media only screen and ( max-width : 767 px ) { }
@media only screen and ( max-width : 991 px ) { }
@media only screen and ( max-width : 1024 px ) { }
@media only screen and ( max-width : 1200 px ) { }
css media query
@media screen and ( min-width : 992 px ) {
.greater-than-large {
color : red ;
}
}
@media screen and ( max-width : 576 px ) {
.less-than-extra-small {
color : red ;
}
}
@media screen and ( min-width : 576 px ) and ( max-width : 992 px ) {
.between-small-and-medium {
color : red ;
}
}
media query
@media only screen and ( min-width : 600 px ) { }
@media only screen and ( min-width : 900 px ) { }
@media only screen and ( min-width : 1200 px ) { }
@media only screen and ( min-width : 2500 px ) { }
@media query
// start Device responsive
//mobile sm 320
@media screen and ( max-width : 374 px ) {
}
//mobile md 375
@media screen and ( min-width : 375 px ) and ( max-width : 424 px ) {
}
//mobile lg 425
@media screen and ( min-width : 425 px ) and ( max-width : 767 px ) {
}
//tablet 768
@media screen and ( min-width : 768 px ) and ( max-width : 1023 px ) {
}
//Laptop 1024
@media screen and ( min-width : 1024 px ) and ( max-width : 1439 px ) {
}
//Laptop L 1440
@media screen and ( min-width : 1440 px ) and ( max-width : 2559 px ) {
}
//4 K 2560
@media screen and ( min-width : 2560 px ) {
}
//end Device responsive
media-queries
@media only screen and ( min-width : 577 px ) and ( max-width : 720 px ) {
h1 {
font-size : 1.0 rem ;
}
}
@media query css
@media screen and ( min-width : 320 px ) and ( max-width : 786 px ) {
// custom CSS
}
media query
@media only screen and ( min-device-width : 900 px ) and ( max-device-width : 1200 px ) {
}
css media queries
@media only screen and ( min-width : 320 px ) {
}
@media only screen and ( min-width : 480 px ) {
}
@media only screen and ( min-width : 768 px ) {
}
@media only screen and ( min-width : 992 px ) {
}
@media only screen and ( min-width : 1200 px ) {
}
media query css
media screen and ( min-width: 1300px) {
media screen and ( min-width: 400px) and ( max-width: 700px) {
media query in css
@media screen and ( min-width : 746 px ) {
}
@media print and ( min-width : 1024 px ) {
}
iphne media query csss
@media only screen
and ( min-device-width : 768 px )
and ( max-device-width : 1024 px ) { }
html media query
<style>
.example1 { margin : 10 px auto; background : deepskyblue }
@media ( max-width : 600 px )
{
.example1 { width : 70 px ; height : 50 px }
}
@media ( min-width : 600 px )
{
.example1 { width : 100 px ; height : 50 px }
}
</style>
<div id="example1" >Hi</div>
CSS Media Queries
media screen and ( min-width: 480px) {
body {
background-color : lightgreen ;
}
}
media query css
@media only screen and ( max-width : 768 px ) { }
css media queries
@media only screen and ( max-width : 1200 px ) {
}
@media only screen and ( max-width : 600 px ) {
}
@media only screen and ( max-width : 425 px ) {
}
Use contextual spacing instead
media queries
@media screen and ( max-width : 480 px ) { }
media query new syntax
@media ( max-width : 30 em ) {
// Styles for viewports with a width of 30 em or less.
}
media query new syntax
@media ( min-width : 400 px ) and ( max-width : 600 px ) {
// Styles for viewports between 400 px and 600 px .
}
media query new syntax
@media ( 400 px <= width <= 600 px ) {
// Styles for viewports between 400 px and 600 px .
}
css media queries htc
@media screen
and ( device-width : 360 px )
and ( device-height : 640 px )
and ( -webkit-device-pixel-ratio : 3 ) {
}
@media screen
and ( device-width : 360 px )
and ( device-height : 640 px )
and ( -webkit-device-pixel-ratio : 3 )
and ( orientation : portrait) {
}
@media screen
and ( device-width : 360 px )
and ( device-height : 640 px )
and ( -webkit-device-pixel-ratio : 3 )
and ( orientation : landscape) {
}
media queries in css
<!-- Don't forget to include this tag -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<!-- in your html head for media queries to work on all devices -->
media query css
Squarespace Webdeveloper http : //www.fiverr.com/s2/6 c4ff21852
media query new syntax
@media ( min-width : 400 px ) {
// Styles for viewports with a width of 400 pixels or greater.
}
media query new syntax
@media ( width >= 400 px ) {
// Styles for viewports with a width of 400 pixels or greater.
}
media query new syntax
@media ( width <= 30 em ) {
// Styles for viewports with a width of 30 em or less.
}
css media queries
<meta charset="UTF-8" >
<meta name="viewport" content="width=device-width, intial-scale=1.0" >
media query in css
Mobile screen friendly using Media Query
@media queries
@media ( min-width : 600 px ) {
nav {
float : left;
width : 25 % ;
}
section {
margin-left : 25 % ;
}
}
@media ( max-width : 599 px ) {
nav li {
display : inline;
}
}
© 2022 Copyright:
DekGenius.com