/* For desktop: */ /* For mobile phones: */ [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { /* For tablets: */ .col-s-1 {width: 8.33%;} .col-s-2 {width: 16.66%;} .col-s-3 {width: 25%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 50%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 75%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;} } @media only screen and (min-width: 768px) { /* For desktop: */ .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 25%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 50%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;} } #outer { height: 500px; background: url('http://i151.photobucket.com/albums/s147/yungottii/abveaspi_background_final.png') no-repeat 0 0 scroll; background-size: 100%; border: 1px solid #000; position: relative; } #frame { position: absolute; top: 10%; bottom: 20%; left: 15%; right: 15%; text-align: center; font-size: 30px; border: 1px dotted #000; } @media only screen and (max-width: 1060px) { #outer { height: 0; padding-top: 47.85%; } } .embed-youtube { position: relative; padding-bottom: 56.25%; /* - 16:9 aspect ratio (most common) */ /* padding-bottom: 62.5%; - 16:10 aspect ratio */ /* padding-bottom: 75%; - 4:3 aspect ratio */ padding-top: 30px; height: 0; overflow: hidden; } .embed-youtube iframe, .embed-youtube object, .embed-youtube embed { border: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }