Tuesday, 22 December 2015
Wednesday, 16 December 2015
Saturday, 12 December 2015
Friday, 11 December 2015
MEDIA QUERIES AT A GLANCE:
Media query is a CSS technique introduced in CSS3.
It uses the
@media
rule to include a block of CSS properties only if a certain condition is true.Add a Breakpoint
You can add as many breakpoints as you like:
@media (min-width:210px) and (max-width:319px)
@media (min-width:320px) and (max-width:479px)
@media (min-width:480px) and (max-width:767px)
@media (min-width:768px)
@media (min-width:992px)
@media (min-width:1200px)
@media (min-width:320px) and (max-width:479px)
@media (min-width:480px) and (max-width:767px)
@media (min-width:768px)
@media (min-width:992px)
@media (min-width:1200px)
When the screen (browser window) gets smaller than 768px, each column should have a width of 100%:
/* For desktop: */.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
Thursday, 10 December 2015
Monday, 7 December 2015
Saturday, 5 December 2015
Subscribe to:
Posts (Atom)