Amit Dhamu

Writes Code

Device and Size Detection

@media only screen and (max-width: 999px) {
  /* rules that only apply for canvases narrower than 1000px */
}

@media only screen and (device-width: 768px) and (orientation: landscape) {
  /* rules for iPad in landscape orientation */
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  /* iPhone, Android rules here */
}


Credits


screen size / detection / css / media queries

← New Table in MySQL Mail in PHP →