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.

            
              
<p>Examples, The <code>viewBox</code> (in blue) is 100 by 200.</p>

		<p>With meet, changing the X alignment.  <br />
      Changing the Y aignment won't have an effect as the vector is already aligned to the top and bottom.</p>
		
		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMinYMid meet" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>
		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMidYMid meet" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>
		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMaxYMid meet" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>

		<p>With slice, changing the Y alignment.  <br />
      Changing the X won't have any effect for the same reason as Y didn't above</p>

		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMinYMin slice" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>
		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMidYMid slice" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>
		<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 200" preserveAspectRatio="xMaxYMax slice" style="border: 2px solid red; display:inline-block;">
			<rect fill="#FFFFFF" width="200" height="200"/>
			<path d="M200.5,200.5h-201v-201h201V200.5z M0.5,199.5h199V0.5H0.5V199.5z"/>
			<rect width="99.5" height="100"/>
			<rect x="99.5" y="100" width="100.5" height="100"/>
			<path fill="#FFFFFF" d="M47.2,43.2L47.2,43.2l-1.4,0.7l-0.2-0.8l1.7-0.9h0.9V50h-1V43.2z"/>
			<path fill="#FFFFFF" d="M150.8,153.9v-2.1h-3.6V151l3.5-5h1.1v4.8h1.1v0.8h-1.1v2.1H150.8z M150.8,150.9v-2.6c0-0.4,0-0.8,0-1.2h0
				c-0.2,0.5-0.4,0.8-0.6,1.2l-1.9,2.7v0H150.8z"/>
			<path d="M147.5,50v-0.6l0.8-0.8c2-1.9,2.9-2.9,2.9-4.1c0-0.8-0.4-1.5-1.5-1.5c-0.7,0-1.3,0.4-1.7,0.7l-0.3-0.7
				c0.5-0.5,1.3-0.8,2.2-0.8c1.7,0,2.4,1.2,2.4,2.3c0,1.4-1,2.6-2.7,4.2l-0.6,0.6v0h3.5V50H147.5z"/>
			<path d="M45.1,152.6c0.3,0.2,1,0.5,1.7,0.5c1.4,0,1.8-0.9,1.8-1.5c0-1.1-1-1.6-2-1.6H46v-0.8h0.6c0.8,0,1.7-0.4,1.7-1.3
				c0-0.6-0.4-1.2-1.4-1.2c-0.6,0-1.2,0.3-1.6,0.5l-0.3-0.8c0.4-0.3,1.2-0.6,2-0.6c1.5,0,2.2,0.9,2.2,1.9c0,0.8-0.5,1.5-1.4,1.8v0
				c1,0.2,1.7,0.9,1.7,2c0,1.2-1,2.3-2.8,2.3c-0.9,0-1.6-0.3-2-0.5L45.1,152.6z"/>
			<rect x="0.5" y="0.5" fill="none" stroke="#2999D6" stroke-width="4" stroke-miterlimit="10" width="99" height="199.5"/>
		</svg>

            
          
!
999px
Loading ..................

Console