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="bg-red-200 sticky top-0">
                
<nav class="flex py-3 items-center h-16 max-w-global">
    <div class="flex-1 flex items-center justify-start">
        <div class="sm:hidden px-3">
            <i class="fas fa-bars text-primary cursor-pointer" data-modal-toggle="mobile-nav">
            </i>
        </div>
        <a class="no-underline global-transition cursor-pointer border-b hover:border-primary border-transparent border-solid text-body1 sm:text-body2 text-primary hidden sm:inline mx-3" data-modal-toggle="treatments">
            Treatments
        </a>
        <a class="no-underline global-transition cursor-pointer border-b hover:border-primary border-transparent border-solid text-body1 sm:text-body2 text-primary hidden sm:inline mx-3" data-modal-toggle="learn">
            Learn
        </a>
    </div>
    <a class="flex-1 text-center h-full flex justify-center items-center" href="/">
        <img src="https://www.helloalpha.com/static/images/alpha_forest.png" class="w-32">
    </a>

            <div class="flex-1 flex items-center justify-end">
                        <a class="no-underline global-transition cursor-pointer border-b hover:border-primary border-transparent border-solid text-body1 sm:text-body2 text-primary hidden sm:inline mx-3" href="https://app.helloalpha.com/my-cases/">
                Login
            </a>
            <a class="no-underline global-transition cursor-pointer border-b hover:border-primary border-transparent border-solid text-body1 sm:text-body2 text-primary sm:mx-3 border border-primary p-2 hover:bg-violator-60" href="/#conditions">
                Get Started
            </a>
        </div>
    
    </nav>
            </div>
<section class="bg-red-200 text-green-900 relative">
<!--     <div class="min-h-screen hero-image bg-center bg-cover flex" style="background-image: url(https://images.unsplash.com/photo-1491438590914-bc09fcaaf77a?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ);"> -->

  <div class="min-h-screen hero-image bg-right-bottom bg-cover flex" style="background-image: url(https://images.unsplash.com/photo-1457131760772-7017c6180f05?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ);">
    <div class="relative container mx-auto p-4 flex items-end z-10">
      <div>
        <div class="content float-left py-4 px-5 my-5">
          <div class="heading mb-3 text-2xl md:text-4xl">Affordable year-round care. No insurance required!</div>
          <div class="text leading-normal hidden sm:block">Helping Women Meet All of their Health Care Needs</div>
        </div>
        <div class="cta clear-left px-5">
          <a class="
                no-underline
                btn btn-primary 
                block sm:inline-block global-transition
                text-white" href="" target="">
            <div class="flex justify-center items-center">
              <span>Join Alpha Today</span>
              <span class="fa fa-xs fa-arrow-right ml-4"></span>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                .clear-left{
  clear:left;
}

.hero-image::after {
  display: block;
  position: absolute;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 100%);
  bottom: 0;
  left:0;
  right:0;
  height: 75vh;
  width: 100%;
  content: '';
}
              
            
!

JS

              
                
              
            
!
999px

Console