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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<html>

        <style>
            @import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');
        </style>

        

        <body>
            <div id="main">
                <div id="title">
                    <h1>Home is not a place, it's a feeling.</h1>
                </div>
                <div id="img-div">
                    <img id="image" src="https://wallpapercave.com/wp/wp4024558.jpg">
                    <div id="img-caption">
                        <b>I just want... to thank you for being my reason to look forward to the next day.</b>
                    </div>
                </div>
                
                <div id="tribute-info">
                    <ul>
                        <li>
                            You are the finest, loveliest, tenderest, and most beautiful person I have ever known - and even that is understatement.
                        </li>
                        <li>
                            I wish I'd do done everything on Earth for you.
                        </li>
                        <li>
                            You are that part of me I'll always need.
                        </li>
                        <li>
                            All that you are is all that I’ll ever need.
                        </li>
                        <li>
                            Everything I do, I do it for you.
                        </li>
                        <li>
                            If you live to be a hundred, I want to live to be a hundred minus one day, so I never have to live without you.
                        </li>
                        <li>
                            Maybe I don’t know that much but I know this much is true, I was blessed because I was loved by you.
                        </li>
                        <li>
                            When you realize you want to spend the rest of your life with somebody, you want the rest of your life to start as soon as possible.
                        </li>
                    </ul>
                    <blockquote>Check some of the most cozy places and scenes</blockquote>
                    <a href="https://www.pinterest.com/mahmoudabbasfawzy/cozy-places-and-scenes/" id="tribute-link" target="_blank"><em>Pinterest</em></a>
                </div>
            </div>
        </body>
        
    </html>
              
            
!

CSS

              
                body {
    font-family: 'New Tegomin', serif;
    margin: 0px;
    padding: 0px;
    background-image: url('https://wallpapercave.com/wp/wp4024558.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #464646;
    font-size: 1em;
}

#main {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(10, auto);
    grid-template-rows: repeat(10, auto);
    margin: 20px;
    border-radius: 10px;
    z-index: 1;
    background-color: rgba(130, 130, 130, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: rgb(99, 165, 226);
    text-shadow:5px 5px 10px black;
}

#title {
    grid-column: 1/11;
    justify-self: center;
}

#image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

#img-div {
    grid-row: 3/5;
    grid-column: 2/10;
}

#img-caption {
    text-align: center;
}

#tribute-info {
    grid-row: 6/10;
    grid-column: 2/10;
    justify-self: left;
}

blockquote {
    border-left-style: solid;
    border-left-width: 5px;
    padding: 10px;
    border-color: #514545;
}

a:link, a:visited {
    background-color: #514545;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
  }
  
  a:hover, a:active {
    background-color: brown;
    transition: all .4s ease;
    -webkit-transition: all .4s ease;
  }
              
            
!

JS

              
                
              
            
!
999px

Console