Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="bg-black text-gray-300 min-h-screen p-10">
  
  <!-- header -->
  <div class="flex">
    <img class="mr-6" src="https://placekitten.com/g/200/200">
    <div class="flex flex-col justify-center">
      <!-- content -->
      <h4 class="mt-0 mb-2 uppercase text-gray-500 tracking-widest text-xs">Playlist</h4>
      <h1 class="mt-0 mb-2 text-white text-4xl">Spotify Album Page with Tailwind CSS</h1>
      
      <p class="text-gray-600 mb-2 text-sm">With J. Cole, Quavo, Ty Dollar $ign</p>
      <p class="text-gray-600 text-sm">Created by <a>Spotify</a> - 50 songs, 3 hr 2 min</p>
    </div>
  </div>
  
  <!-- action buttons -->
  <div class="mt-6 flex justify-between">
    <div class="flex">
      <button class="mr-2 bg-green-500 text-green-100 block py-2 px-8 rounded-full">Play</button>
      <button class="mr-2 border border-white block p-2 rounded-full"><img src="https://image.flaticon.com/icons/svg/2485/2485986.svg" height="25" width="25"></button>
      <button class="mr-2 border border-white block p-2 rounded-full">...</button>
    </div>
    <div class="text-gray-600 text-sm tracking-widest text-right">
      <h5 class="mb-1">Followers</h5>
      <p>5,055</p>
    </div>
  </div>
  
  <!-- song list   -->
  <div class="mt-10">
    <!-- song list header -->
    <div class="flex text-gray-600">
      <div class="p-2 w-8 flex-shrink-0"></div>
      <div class="p-2 w-8 flex-shrink-0"></div>
      <div class="p-2 w-full">Title</div>
      <div class="p-2 w-full">Artist</div>
      <div class="p-2 w-full">Album</div>
      <div class="p-2 w-12 flex-shrink-0 text-right">⏱</div>
    </div>
    
    <div class="flex border-b border-gray-800 hover:bg-gray-800">
      <div class="p-3 w-8 flex-shrink-0">▶️</div>
      <div class="p-3 w-8 flex-shrink-0">❤️</div>
      <div class="p-3 w-full">My Song Here</div>
      <div class="p-3 w-full">Eminem</div>
      <div class="p-3 w-full">Spotify</div>
      <div class="p-3 w-12 flex-shrink-0 text-right">5:35</div>
    </div>
    <div class="flex border-b border-gray-800 hover:bg-gray-800">
      <div class="p-3 w-8 flex-shrink-0">▶️</div>
      <div class="p-3 w-8 flex-shrink-0">❤️</div>
      <div class="p-3 w-full">My Song Here</div>
      <div class="p-3 w-full">Eminem</div>
      <div class="p-3 w-full">Spotify</div>
      <div class="p-3 w-12 flex-shrink-0 text-right">5:35</div>
    </div>
    <div class="flex border-b border-gray-800 hover:bg-gray-800">
      <div class="p-3 w-8 flex-shrink-0">▶️</div>
      <div class="p-3 w-8 flex-shrink-0">❤️</div>
      <div class="p-3 w-full">My Song Here</div>
      <div class="p-3 w-full">Eminem</div>
      <div class="p-3 w-full">Spotify</div>
      <div class="p-3 w-12 flex-shrink-0 text-right">5:35</div>
    </div>
    <div class="flex border-b border-gray-800 hover:bg-gray-800">
      <div class="p-3 w-8 flex-shrink-0">▶️</div>
      <div class="p-3 w-8 flex-shrink-0">❤️</div>
      <div class="p-3 w-full">My Song Here</div>
      <div class="p-3 w-full">Eminem</div>
      <div class="p-3 w-full">Spotify</div>
      <div class="p-3 w-12 flex-shrink-0 text-right">5:35</div>
    </div>
    <div class="flex border-b border-gray-800 hover:bg-gray-800">
      <div class="p-3 w-8 flex-shrink-0">▶️</div>
      <div class="p-3 w-8 flex-shrink-0">❤️</div>
      <div class="p-3 w-full">My Song Here</div>
      <div class="p-3 w-full">Eminem</div>
      <div class="p-3 w-full">Spotify</div>
      <div class="p-3 w-12 flex-shrink-0 text-right">5:35</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /**

  @ChrisOnCode 🤓

**/
              
            
!

JS

              
                ///////////////////
// @ChrisOnCode 😁
/////////////////
              
            
!
999px

Console