DETECTAR LA RESOLUCION DE LA PANTALLA


/ Published in: jQuery
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.