cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!--Pattern HTML-->
  <div id="pattern" class="pattern">
  	<div class="map">
		  <iframe width="650" height="100" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=&amp;aq=0&amp;oq=pittsburgh&amp;sll=40.440625,-79.995886&amp;sspn=0.166706,0.363579&amp;ie=UTF8&amp;ll=40.697488,-73.979681&amp;spn=0.664273,1.454315&amp;t=m&amp;z=10&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=&amp;aq=0&amp;oq=pittsburgh&amp;sll=40.440625,-79.995886&amp;sspn=0.166706,0.363579&amp;ie=UTF8&amp;ll=40.697488,-73.979681&amp;spn=0.664273,1.454315&amp;t=m&amp;z=10" style="color:#0000FF;text-align:left">View Larger Map</a></small>
		</div>
	</div>
	<!--End Pattern HTML-->
	
	<div class="container">	
		<section class="pattern-description">
			<h1>Fluid Map Maintaining Aspect Ratio</h1>
			<p>Creating a fluid map that preserves aspect ratio by using <a href="https://codepen.io/chriscoyier/pen/115">Google Maps with Uncle Dave's Ol' Padded Box</a></p>
			<h2>Resources</h2>
			<ul>
				<li><a href="http://daverupert.com/2012/04/uncle-daves-ol-padded-box/">Uncle Dave’s Ol’ Padded Box</a></li>
				<li><a href="https://codepen.io/chriscoyier/pen/115">Google Maps with Uncle Dave’s Ol’ Padded Box by Chris Coyier</a></li>
			</ul>
		</section>
		<footer role="contentinfo">   
			<div>
				<nav id="menu">
					<a href="https://bradfrost.github.com/this-is-responsive/patterns.html">&larr;More Responsive Patterns</a>
				</nav>
			</div>
		</footer>
	</div>
            
          
!
            
              .map {
  	  width: 90%;
		  height: 0;
		  margin: 0 auto;
		  padding-top: 33.33%;
		  position: relative;
		}
		.map iframe {
		    width: 100%;
		    height: 100%; /* had to specify height/width */
		  	position: absolute;
		    top: 0; 
		    right: 0;
		    left: 0; 
		    bottom: 0;   
		  }
            
          
!
999px
Loading ..................

Console