Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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="grid h-screen text-white">
  <div class="m-auto flex max-w-screen-xl flex-col items-center gap-6 p-6 lg:flex-row lg:gap-0">

    <div class="relative flex w-full flex-1 items-center lg:basis-[400px] lg:text-right">
      <div class="flex-1 lg:pr-6">
        <h2 class="text-4xl font-bold">Horizontal Tree List with Tailwind CSS</h2>
      </div>
      <div class="top-1/2 mt-px hidden h-px w-16 bg-green-500 lg:block"></div>
    </div>

    <ul class="lg:basis-[750px]">
      <li class="group relative py-6">
        <div class="absolute inset-0 hidden w-px bg-green-500 group-first:top-1/2 group-last:bottom-1/2 lg:block"></div>
        <div class="items-center gap-6 lg:flex">
          <div class="relative mb-4 lg:mb-0 lg:pl-16">
            <div class="absolute left-0 top-1/2 hidden h-px w-full bg-green-500 lg:block"></div>
            <div class="relative grid h-24 w-24 rounded-full border border-solid border-green-500 bg-neutral-900">
              <svg class="m-auto block h-full max-h-12 w-full" fill="none" height="15" width="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg">
                <path clip-rule="evenodd" d="M6.0068 13.4178L8.0068 1.4178L8.9932 1.5822L6.9932 13.5822L6.0068 13.4178ZM5.20711 4.5L2.20711 7.5L5.20711 10.5L4.5 11.2071L0.792892 7.5L4.5 3.79289L5.20711 4.5ZM10.5 3.79289L14.2071 7.5L10.5 11.2071L9.79289 10.5L12.7929 7.5L9.79289 4.5L10.5 3.79289Z" fill="white" fill-rule="evenodd" />
              </svg>
            </div>
          </div>

          <div>
            <h3 class="mb-2 text-xl font-bold">A heading in euismod dolor</h3>
            <p class="opacity-75">Lorem ipsum dolor sit amet consectetur. Consequat sollicitudin in euismod dolor, nec sodales viverra.</p>
          </div>
        </div>
      </li>
      <li class="group relative py-6">
        <div class="absolute inset-0 hidden w-px bg-green-500 group-first:top-1/2 group-last:bottom-1/2 lg:block"></div>
        <div class="items-center gap-6 lg:flex">
          <div class="relative mb-4 lg:mb-0 lg:pl-16">
            <div class="absolute left-0 top-1/2 hidden h-px w-full bg-green-500 lg:block"></div>
            <div class="relative grid h-24 w-24 rounded-full border border-solid border-green-500 bg-neutral-900">
              <svg class="m-auto block h-full max-h-12 w-full" fill="none" height="15" width="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg">
                <path clip-rule="evenodd" d="M6.0068 13.4178L8.0068 1.4178L8.9932 1.5822L6.9932 13.5822L6.0068 13.4178ZM5.20711 4.5L2.20711 7.5L5.20711 10.5L4.5 11.2071L0.792892 7.5L4.5 3.79289L5.20711 4.5ZM10.5 3.79289L14.2071 7.5L10.5 11.2071L9.79289 10.5L12.7929 7.5L9.79289 4.5L10.5 3.79289Z" fill="white" fill-rule="evenodd" />
              </svg>
            </div>
          </div>

          <div>
            <h3 class="mb-2 text-xl font-bold">A heading in euismod dolor</h3>
            <p class="opacity-75">Lorem ipsum dolor sit amet consectetur. Consequat sollicitudin in euismod dolor, nec sodales viverra.</p>
          </div>
        </div>
      </li>
      <li class="group relative py-6">
        <div class="absolute inset-0 hidden w-px bg-green-500 group-first:top-1/2 group-last:bottom-1/2 lg:block"></div>
        <div class="items-center gap-6 lg:flex">
          <div class="relative mb-4 lg:mb-0 lg:pl-16">
            <div class="absolute left-0 top-1/2 hidden h-px w-full bg-green-500 lg:block"></div>
            <div class="relative grid h-24 w-24 rounded-full border border-solid border-green-500 bg-neutral-900">
              <svg class="m-auto block h-full max-h-12 w-full" fill="none" height="15" width="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg">
                <path clip-rule="evenodd" d="M6.0068 13.4178L8.0068 1.4178L8.9932 1.5822L6.9932 13.5822L6.0068 13.4178ZM5.20711 4.5L2.20711 7.5L5.20711 10.5L4.5 11.2071L0.792892 7.5L4.5 3.79289L5.20711 4.5ZM10.5 3.79289L14.2071 7.5L10.5 11.2071L9.79289 10.5L12.7929 7.5L9.79289 4.5L10.5 3.79289Z" fill="white" fill-rule="evenodd" />
              </svg>
            </div>
          </div>

          <div>
            <h3 class="mb-2 text-xl font-bold">A heading in euismod dolor</h3>
            <p class="opacity-75">Lorem ipsum dolor sit amet consectetur. Consequat sollicitudin in euismod dolor, nec sodales viverra.</p>
          </div>
        </div>
      </li>
    </ul>
  </div>
</div>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console