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.

            
              <h1>do not preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image  width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png'></image>
	</svg>

	<h1>none preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='none'></image>
	</svg>
	
	<h1> what is a meet propertise</h1>
	<h1>xMinYMin meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMin meet'></image>
	</svg>

	<h1>xMidYMin meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMin meet'></image>
	</svg>

	<h1>xMaxYMin meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMin meet'></image>
	</svg>

	<h1>xMinYMid meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMid meet'></image>
	</svg>

	<h1>xMidYMid meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMid meet'></image>
	</svg>

	<h1>xMaxYMid meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMid meet'></image>
	</svg>

	<h1>xMinYMax meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMax meet'></image>
	</svg>

	<h1>xMidYMax meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMax meet'></image>
	</svg>

	<h1>xMaxYMax meet preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMax meet'></image>
	</svg>

	<h1> what is a slice propertise</h1>
	<h1>xMinYMin slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMin slice'></image>
	</svg>

	<h1>xMidYMin slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMin slice'></image>
	</svg>

	<h1>xMaxYMin slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMin slice'></image>
	</svg>

	<h1>xMinYMid slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMid slice'></image>
	</svg>

	<h1>xMidYMid slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMid slice'></image>
	</svg>

	<h1>xMaxYMid slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMid slice'></image>
	</svg>

	<h1>xMinYMax slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMinYMax slice'></image>
	</svg>

	<h1>xMidYMax slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMidYMax slice'></image>
	</svg>

	<h1>xMaxYMax slice preserveAspectRatio</h1>
	<svg width='420px' height='320px'>
		<rect x='0' y='0' width='400' height='300' stroke-width='3' stroke='#000000' fill='#ffffff'></rect>
		<rect x='10' y='10' width='380' height='280' stroke-width='1' stroke='red' fill='#ffffff'></rect>
		<image width='200' height='300' xlink:href='https://www.google.com/images/logos/google_logo_41.png' preserveAspectRatio='xMaxYMax slice'></image>
	</svg>
            
          
!
999px
Loading ..................

Console