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

              
                <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <title>login Page</title>
</head>

<body>
    <!--Global Co<ntainer-->
    <div class="flex item-center justify-center min-h-screen bg-slate-200">
        <!--Card Container-->
        <div class="flex flex-col space-y-10 rounded-2xl shadow-2xl bg-white m-auto 
        md:flex-row md:space-y-0 md:space-x-10 md:m-0 md:p-auto md:m-auto">
            <!--Content-->
            <div class="p-5 flex flex-col space-y-3">
                <div class="font-serif text-3xl font-bold">Login to your account</div>
                <div class="flex flex-row space-x-5 align-center justify-left">
                    <div class="text-slate-500 font-semibold">Don't have an account? </div>
                    <div> <a href="#" class="text-blue-500 font-semibold hover:underline underline-offset-2">
                            Sign Up Free! </a>
                    </div>
                </div>

                <div class="pt-10 space-y-3">
                    <div><input class="p-3 w-full border-2 border-solid border-slate-300" type="email"
                            placeholder="Enter your email address"></div>
                    <div><input class="p-3 w-full border-2 border-solid border-slate-300" type="password"
                            placeholder="Enter your password"></div>
                </div>

                <div class="flex flex-col items-center justify-between mt-6 space-y-6 md:flex-row md:space-y-0">
                    <div> <a href="#" class="text-blue-500 font-semibold hover:underline underline-offset-2">
                            Forgot Password ? </a>
                    </div>

                    <button
                        class="w-full md:w-auto flex justify-center items-center p-3 space-x-4 font-sans font-bold text-white rounded-xl shadow-lg px-9 bg-cyan-700 shadow-cyan-100 hover:bg-opacity-90 shadow-sm hover:shadow-lg border transition hover:-translate-y-0.5 duration-150">
                        <span>Log In</span>
                        <svg xmlns="http://www.w3.org/2000/svg" class="w-7" viewBox="0 0 24 24" stroke-width="1.5"
                            stroke="#ffffff" fill="none" stroke-linecap="round" stroke-linejoin="round">
                            <path stroke="none" d="M0 0h24v24H0z" fill="none" />
                            <line x1="5" y1="12" x2="19" y2="12" />
                            <line x1="13" y1="18" x2="19" y2="12" />
                            <line x1="13" y1="6" x2="19" y2="12" />
                        </svg>
                    </button>
                </div>
                <!-- Border -->
                <div class="border-b border-b-gray-300"></div>

                <!-- Bottom Content -->
                <p class="py-3 text-sm font-thin text-center text-gray-400">
                    or log in with
                </p>

                <button
                    class="p-3 bg-[#3b5998] bg-opacity-90 hover:bg-opacity-100 hover:shadow-lg duration-150 font-semibold rounded-xl text-white">
                    Signin with facebook</button>
                <button
                    class="p-3 bg-[#c32f10] bg-opacity-90 hover:bg-opacity-100 hover:shadow-lg duration-150 font-semibold rounded-xl text-white">Signin
                    with google</button>

            </div>

            <!--image div-->
            <div class="relative hidden md:block" >
                <img src="https://images.pexels.com/photos/3435272/pexels-photo-3435272.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
                    alt="" class="mx-auto duration-200 w-96 h-full rounded-r-2xl">
                <!-- Close Button -->
                <div class="group absolute top-5 right-4 flex items-center justify-center w-10 h-10 bg-gray-200 rounded-full md:bg-white md:top-4 hover:cursor-pointer hover:-translate-y-0.5 transition duration-150">
                    <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-black group-hover:text-gray-600"
                        viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
                        stroke-linejoin="round">
                        <path stroke="none" d="M0 0h24v24H0z" fill="none" />
                        <line x1="18" y1="6" x2="6" y2="18" />
                        <line x1="6" y1="6" x2="18" y2="18" />
                    </svg>
                </div>

            </div>

        </div>
    </div>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console