Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $('.vegas-container').removeAttr('style');
  2.  
  3. $(window).resize(function() {
  4. if ($('body').width() < 1000)
  5. $('.vegas-container').height(200);
  6. else
  7. $('.vegas-container').height(400);
  8. });
  9.  
  10. .vegasHere {
  11. width: 100%;
  12. height: 200px;
  13. }
  14. @media (min-width: 1000px) {
  15. .vegasHere {
  16. height: 400px;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement