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>
<header id="header">
        <div>
            <img src="https://media.istockphoto.com/vectors/violin-vector-id883076126?s=612x612" alt="logo" id="header-img">
            <span class="logo-title">Voltart Violins</span>
        </div>
        <h2>Explore your inner musician</h2>
        <nav id="nav-bar">
                <a href="#About-us" class="nav-link">About Us</a>
                <a href="#Our-products" class="nav-link">Our Products</a>
                <a href="#Contact-us" class="nav-link">Contact Us</a>
        </nav>

    </header>
    <div class="container1">
        <div class="title">
            Watch the video to know more about violins
        </div>
        <iframe height="400" width="600" src="https://www.youtube.com/embed/RCeJO4uhq8U" id="video"></iframe>
        </iframe>
        <div class="newsletter">
            <form id="form" action="https://www.freecodecamp.org/email-submit">
                <label for="email"> Subsribe to our newsletter
                    <input type="email" id="email" placeholder="Enter your email" name="email" required>
                </label>
                <input type="submit" value="Submit" id="submit">
            </form>

        </div>

    </div>

    <div class="container">
        <section id="About-us">
            <h1>
                About Us
            </h1>
            <p>
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestiae deleniti maxime necessitatibus dicta
                ad itaque,
                optio sapiente dolorum non aut inventore vero explicabo repellat beatae dolores ipsa fugit quasi unde.
                Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dolorem perspiciatis magnam necessitatibus
                molestias
                aut earum quia? Consequatur ea fugiat minus rem tenetur praesentium incidunt cumque!
                Deleniti cum excepturi eveniet similique!
            </p>


        </section>
        <section id="Our-products">
            <h1>
                What we sell
            </h1>
            <div class="products">
                <div class="violins">
                    <div>
                        <div class="title">Electric Violin </div>
                        <img src="https://www.austinbazaar.com/product_images/uploaded_images/blog-sta-evn-mrd.jpg" alt="apple" class="violin-image">
                        <button class="card-select">Select</button>
                    </div>
                        
                </div>
                <div class="violins">
                    <div>
                        <div class="title">Acoustic-Electric Violin</div>
                        <img src="https://www.austinbazaar.com/product_images/uploaded_images/8-m-bar-aevr-2.jpg" alt="banana" class="violin-image">
                        <button class="card-select">Select</button>
                    </div>
                        
                    
                </div>
                <div class="violins">
                    <div>
                        <div class="title">Acoustic Violin</div>
                        <img src="https://www.austinbazaar.com/product_images/uploaded_images/blog-bar-bvn100-14-2.jpg" alt="orange" class="violin-image">
                        <button class="card-select">Select</button>
                    </div>  
                </div>
            </div>
        </section>
        <section id="Contact-us">
            <h1>
                Contact-us
            </h1>
            <p>
                <b>Address:</b>
                    Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos fugit ad ab laudantium facere
                 dolorum modi voluptate aut officia amet? Recusandae porro sapiente fugiat? Quisquam architecto 
                 quo voluptate sapiente nihil!
            <p>
        </section>
    </div>
              
            
!

CSS

              
                * {
    margin: 0;
}

body {
   background-color: #ddd; 
   color: #222;
   font-family: Verdana, Geneva, Tahoma, sans-serif;
   display: inline-block;
}

#header{
    position: fixed;
    top: 0;
    min-height: 75px;
    padding: 0px 20px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: greenyellow;
    z-index: 1;
}
.logo-title{
    font-style: italic;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 200;
    color: deeppink;
}
#nav-bar {
   width: 400px;
   display: flex;
   position: relative;
   flex-wrap: wrap;
}

a{
    padding-left: 5px;
    padding-right: 5px;
    border: 3px solid rgba(0, 128, 0, 0.596);
    border-radius: 5px;
    background-color: aquamarine;
    margin-right: 5px;
    margin-left: 5px;
}
a:hover{
    background-color: rgba(72, 0, 255, 0.362);
    animation: 2s ease;
}

#header-img {
    object-fit: contain;
    height: 40px;
}

.logo {
   flex: 0.2; 
   margin-left: 5%;
}

.link {
    flex: 0.8;
    text-align: center;
    font-size: 20px;
}

.newsletter{
    height: 40px;
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: dodgerblue;
    border-radius: 10px;
}

a {
    text-decoration: none;
    margin-right: 3%;
    color: black;
}

a:hover {
    text-decoration: underline;
}

h1 {
    margin: 30px 30px;
    font: 60px;
}

span{
    padding-left: 20px;
    font-style: normal;
    font-size: 30px;
}

@media (max-width: 1300px){
    h1 {
        font-size: 45px;
    }
}

h3 {
    margin-bottom: 30px;
    font-size: 40px;
}

.container1 {
    position: relative;
    top: 80px;
    margin: 20px 10%;
    padding: 10px 5%;
    
}

 .container{
    margin-top: 30px;
    position: relative;
    top:30px;
    padding: 20px 30px 20px 50px ;
    text-align: left;
} 
    
 #About-us, #Contact-us {
    text-align: left;
} 

.violin-image {
    object-fit: contain;
    height: 300px;
    padding-bottom: 30px;
}
.Our-prodducts{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.products {
    display: block;
}
.violins {
    padding-left: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 5px 0px;
    border-radius: 10px;
    height: 400px;
    width: 500px;
}

button {
    background-color: orange;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 10px 30px;
    font-size: 20px;
    border-radius: 50px;
}

button:hover {
    background-color: orangered;
    transition: background-color 0.15s ease-in;
}
.title{
    margin-top: 20px;
    padding: 10px 5px 10px 5px;
    font-style: italic;
    font-size: 30px;
    color: rgba(30, 60, 180, 0.91);
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 20px;
}

              
            
!

JS

              
                
              
            
!
999px

Console