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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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>
	<!--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>
				<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>
		<footer role="contentinfo">   
				<nav id="menu">
					<a href="https://bradfrost.github.com/this-is-responsive/patterns.html">&larr;More Responsive Patterns</a>
              .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;   
Loading ..................