Posted By

serialk89 on 11/23/10


Tagged


Versions (?)

DETECTAR LA RESOLUCION DE LA PANTALLA


 / Published in: jQuery
 

Detecta la resolucion de la pantalla Util para utilizarlo con css.

  1. //detectar resolucion de pantalla
  2. if ((screen.width>=1600) && (screen.height>=900))
  3. {
  4. //Código de ejemplo...
  5. $("#cuerpo").css("margin-left","14%");
  6. $("#wrap55").css("height","36px");
  7. $("#header").css("padding-left","14%");
  8. $("#footer .title").css("padding-left","15%");
  9. $("#footer .icos").css("margin-left","15%");
  10. $("#footer .title2").css("padding-left","11%");
  11. }

Report this snippet  

You need to login to post a comment.