css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
      <header class="mdl-layout__header" style="background: #6735ba">
  
        <div class="mdl-layout__tab-bar mdl-js-ripple-effect" style="background: transparent">
          <a href="#scroll-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
          <a href="#scroll-tab-2" class="mdl-layout__tab">Tab 2</a>
          <a href="#scroll-tab-3" class="mdl-layout__tab">Tab 3</a>
          <a href="#scroll-tab-4" class="mdl-layout__tab">Tab 4</a>
          <a href="#scroll-tab-5" class="mdl-layout__tab">Tab 5</a>
          <a href="#scroll-tab-6" class="mdl-layout__tab">Tab 6</a>
			  <a href="#scroll-tab-2" class="mdl-layout__tab">Tab 2</a>
          <a href="#scroll-tab-3" class="mdl-layout__tab">Tab 3</a>
          <a href="#scroll-tab-4" class="mdl-layout__tab">Tab 4</a>
          <a href="#scroll-tab-5" class="mdl-layout__tab">Tab 5</a>
          <a href="#scroll-tab-6" class="mdl-layout__tab">Tab 6</a>
        </div>
      </header>
      
      <main class="mdl-layout__content">
			
			  <div class="mdl-button--fab_flinger-container">
   <button class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect dialog-button" style="background: #21a464; color: #fff"><i class="material-icons">add</i></button>
  </div>


			
        <section class="mdl-layout__tab-panel is-active" id="scroll-tab-1">
          <div class="page-content">
          	
				 
				 
				 
<div class="demo-card-red mdl-card mdl-shadow--2dp mdl-card--horizontal">
 <div class="mdl-card__media">
  <img src="http://placehold.it/150x200/DC143C/FFFFFF" alt="img">
 </div>
 <div class="mdl-card__title">
  <h2 class="mdl-card__title-text">Welcome</h2>
 </div>
 <div class="mdl-card__supporting-text">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis...
 </div>
 <div class="mdl-card__actions mdl-card--border">
  <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" data-upgraded=",MaterialButton,MaterialRipple">Get Started</a>
 </div>
 <div class="mdl-card__menu">
  <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect" data-upgraded=",MaterialButton,MaterialRipple"><i class="material-icons">share</i></button>
 </div>
</div>





    <div class="demo-card-red mdl-card mdl-shadow--2dp mdl-card--horizontal-2">
     <div class="mdl-card__title">
      <h2 class="mdl-card__title-text">Welcome</h2>
      <div class="mdl-card__subtitle-text"> Subtitle text</div>
     </div>
     <div class="mdl-card__media">
      <img src="http://placehold.it/112x112/DC143C/FFFFFF" alt="img">
     </div>
     <div class="mdl-card__actions">
      <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" data-upgraded=",MaterialButton,MaterialRipple">Get Started</a>
     </div>
    </div>
				 
				 

    <div class="demo-card-red mdl-card mdl-shadow--2dp mdl-card--horizontal-2">
     <div class="mdl-card__title">
      <h2 class="mdl-card__title-text">Welcome</h2>
      <div class="mdl-card__subtitle-text"> Subtitle text</div>
     </div>
     <div class="mdl-card__media">
      <img src="http://placehold.it/112x112/DC143C/FFFFFF" alt="img">
     </div>
     <div class="mdl-card__actions">
      <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" data-upgraded=",MaterialButton,MaterialRipple">Get Started</a>
     </div>
    </div>
				 
				 
	
    <div class="demo-card-red mdl-card mdl-shadow--2dp mdl-card--horizontal-2">
     <div class="mdl-card__title">
      <h2 class="mdl-card__title-text">Welcome</h2>
      <div class="mdl-card__subtitle-text"> Subtitle text</div>
     </div>
     <div class="mdl-card__media">
      <img src="http://placehold.it/112x112/DC143C/FFFFFF" alt="img">
     </div>
     <div class="mdl-card__actions">
      <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" data-upgraded=",MaterialButton,MaterialRipple">Get Started</a>
     </div>
    </div>
				 			 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 

				 
          </div>
        </section>
        <section class="mdl-layout__tab-panel" id="scroll-tab-2">
          <div class="page-content">
          	
<div class="demo-card-wide mdl-card mdl-shadow--2dp">
     <div class="mdl-card__title">
      <h2 class="mdl-card__title-text">Welcome</h2>
     </div>
     <div class="mdl-card__supporting-text">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis pellentesque lacus eleifend lacinia...
     </div>
     <div class="mdl-card__actions mdl-card--border">
      <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
      Get Started
    </a>
     </div>
     <div class="mdl-card__menu">
      <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
      <i class="material-icons">share</i>
    </button>
     </div>
    </div>
				 
				 
				 
				 
				 
				 
				 
				 

				 
          </div>
        </section>
        <section class="mdl-layout__tab-panel" id="scroll-tab-3">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
        <section class="mdl-layout__tab-panel" id="scroll-tab-4">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
        <section class="mdl-layout__tab-panel" id="scroll-tab-5">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
        <section class="mdl-layout__tab-panel" id="scroll-tab-6">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
      </main>
    </div>
	  
	  
	  
<dialog id="dialog" class="mdl-dialog">
 <h3 class="mdl-dialog__title">MDL Dialog</h3>
 <div class="mdl-dialog__content">
  <p>
   This is an example of the Material Design Lite dialog component. Please use responsibly.
  </p>

  <p>
   <form action="#">
    <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
     <input class="mdl-textfield__input" type="text" id="sample3">
     <label class="mdl-textfield__label" for="sample3">Text...</label>
    </div>
   </form>
   <!-- Numeric Textfield with Floating Label -->
   <form action="#">
    <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
     <input class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?" id="sample4">
     <label class="mdl-textfield__label" for="sample4">Number...</label>
     <span class="mdl-textfield__error">Input is not a number!</span>
    </div>
   </form>
  </p>

 </div>
 <div class="mdl-dialog__actions">
  <button type="button" class="mdl-button">Close</button>
  <button type="button" class="mdl-button" disabled>Disabled action</button>
 </div>
</dialog>

	  
            
          
!
            
              body {
	background: #fafafa;
}

.mdl-layout__tab-bar-button {
	background-color: rgb(104, 54, 186);
}

.mdl-button--fab_flinger-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99999;
}
.mdl-layout__header {
	min-height: 28px;
}

.demo-card-wide.mdl-card {
	margin: 10px;
	width: auto;
}
.demo-card-wide > .mdl-card__title {
	color: #fff;
	height: 176px;
	background: url("https://getmdl.io/assets/demos/welcome_card.jpg") center /
		cover;
}
.demo-card-wide > .mdl-card__menu {
	color: #fff;
}

.mdl-layout.is-upgraded .mdl-layout__tab.is-active::after {
	background: #fff;
}

.demo-card-red.mdl-card {
	margin: 10px;
	width: auto;
}

.demo-list-control {
	width: auto;
}

.demo-list-radio {
	display: inline;
}

.demo-list-icon {
	width: auto;
}




.mdl-card--horizontal {
  flex-direction: column;
  height: 1vh;
  /* 1 */
  padding-left: 150px;
  width: 100%;
}
.mdl-card--horizontal .mdl-card__media {
  left: 0;
  position: absolute;
  width: 150px;
}
.mdl-card--horizontal .mdl-card__supporting-text {
  flex: 1 1 auto;
  width: auto;
}

.mdl-card--horizontal-2 {
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 0px;
}
.mdl-card--horizontal-2 .mdl-card__title {
  align-items: flex-start;
  flex-direction: column;
  flex: 1 auto;
  float: left;
}
.mdl-card--horizontal-2 .mdl-card__title-text {
  align-self: flex-start;
}
.mdl-card--horizontal-2 .mdl-card__media {
  flex: 0 auto;
  float: right;
  height: 112px;
  margin: 16px 16px 0 0;
  width: 112px;
}
.mdl-card--horizontal-2 .mdl-card__actions {
  clear: both;
  flex: 1 auto;
}














.mdl-dialog {
  border: none;
  box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.14), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.2);
  width: 280px; }
  .mdl-dialog__title {
    padding: 24px 24px 0;
    margin: 0;
    font-size: 2.5rem; }
  .mdl-dialog__actions {
    padding: 8px 8px 8px 24px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row-reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap; }
    .mdl-dialog__actions > * {
      margin-right: 8px;
      height: 36px; }
      .mdl-dialog__actions > *:first-child {
        margin-right: 0; }
    .mdl-dialog__actions--full-width {
      padding: 0 0 8px 0; }
      .mdl-dialog__actions--full-width > * {
        height: 48px;
        -webkit-flex: 0 0 100%;
            -ms-flex: 0 0 100%;
                flex: 0 0 100%;
        padding-right: 16px;
        margin-right: 0;
        text-align: right; }
  .mdl-dialog__content {
    padding: 20px 24px 24px 24px;
    color: rgba(0,0,0, 0.54); }


@media screen and (max-width: 1024px) {
.mdl-layout__tab-bar-button {
    width: 0;
}
	
}
@media screen and (max-width: 1024px) {
.mdl-layout__tab-bar {
    width: calc(100% - 0px);
    padding: 0;
}
}

.mdl-layout__tab-bar-left-button {
	display: none;
}
            
          
!
            
              (function() {
	"use strict";
	var dialogButton = document.querySelector(".dialog-button");
	var dialog = document.querySelector("#dialog");
	if (!dialog.showModal) {
		dialogPolyfill.registerDialog(dialog);
	}
	dialogButton.addEventListener("click", function() {
		dialog.showModal();
	});
	dialog
		.querySelector("button:not([disabled])")
		.addEventListener("click", function() {
		dialog.close();
	});
})();

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console