<style type='text/css'> .tab-buttons{ overflow:auto; text-align: center; } .tab-buttons button{ background:#363f45; color:#feb41c; border:none; padding:10px 20px; font:700 15px 'segoe ui',sans-serif; text-transform:uppercase; cursor:pointer; -webkit-transition:all 300ms ease-in; -moz-transition:all 300ms ease-in; transition:all 300ms ease-in; } .tab-buttons button.active{ color: #fff; background: #5e7c88; } .tab-content>div{ padding:20px; background:#5e7c88; font:400 16px 'segoe ui',sans-serif; color:#fff; } .tab-content iframe{width:100%!important;height:400px;} @media screen and (max-width:960px){ .tab-content iframe{max-height:90%}} @media screen and (max-width:768px){ .tab-content iframe{max-height:75%}} @media screen and (max-width:600px){ .tab-content iframe{max-height:60%}} @media screen and (max-width:480px){ .tab-content iframe{height:auto!important;max-height:auto!important}}
<script> var myApp=angular.module('tabs',[]); myApp.controller('shift_tabs',function(){ this.activeTab; this.makeShift=function(e){ this.activeTab=e; } this.isActive=function(f){ if(f==this.activeTab){ return true } } });
<script src='//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js'>