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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="style.css">
    <title>landing page</title>

<body>
    <!--Header Showcase-->
    <header id="showcase" class="grid">
        <div class="Bg-image"></div>
        <div class="content-wrap">
           
                </ul>
                <h1>Buy a BIG elephant</h1>
                <p> Your one stop elephant store.</p>

                <a href="#section-b" class="btn"> Read more here</a>
        </div>
    </header>

    <!-- Main Area-->
    <main id="main">

        <!--Section A-->
        <section id="section-a" class="grid">
            <div class="content-wrap">
                <h2 class="content-title">Elephants of Chiang mai</h2>
                <div class="content-text">
                    <p> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Sed, quia sunt, nisi, nostrum
                        architecto
                        cupiditate corrupti porro nihil necessitatibus officia aperiam eaque blanditiis suscipit
                        voluptate
                        officiis vitae veritatis consequatur ad.</p>
                </div>
            </div>
        </section>
        <!--Section B-->
        <section id="section-b" class="grid">
            <ul>
                <li>
                    <div class="card">
                        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/African_Elephant_%28Loxodonta_africana%29_bull_%2831100819046%29.jpg/300px-African_Elephant_%28Loxodonta_africana%29_bull_%2831100819046%29.jpg"
                            alt="an African Elephant">
                        <div class="card-content">
                            <h3 class="Card-title"> Afican Elephant</h3>
                            <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero commodi esse reiciendis,
                                dicta omnis animi delectus quibusdam vitae doloribus odit.</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="card">
                        <img src="https://upload.wikimedia.org/wikipedia/commons/6/6a/African_Forest_Elephant.jpg" alt="an African Forest Elephant">
                        <div class="card-content">
                            <h3 class="Card-title"> Afican Forrest Elephant</h3>
                            <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero commodi esse reiciendis,
                                dicta omnis animi delectus quibusdam vitae doloribus odit.</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="card">
                        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Elephas_maximus_%28Bandipur%29.jpg/300px-Elephas_maximus_%28Bandipur%29.jpg"
                            alt="an Asian Elephant">
                        <div class="card-content">
                            <h3 class="Card-title"> Asian Elephant</h3>
                            <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero commodi esse reiciendis,
                                dicta omnis animi delectus quibusdam vitae doloribus odit.</p>
                        </div>
                    </div>
                </li>
            </ul>
        </section>
        <!--Section C-->
        <section id="section-c" class="grid">
            <div class="content-wrap">
                <h2 class="content-title"></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio debitis nostrum, mollitia quaerat
                    eius est fuga? Veritatis molestiae beatae officia?</p>
            </div>
        </section>

        <!-- Section D-->
        <section id="section-d" class="grid">
            <div class="box">
                <h2 class="content-title">Contat Us</h2>
                <p> Lorem ipsum, dolor sit amet consectetur adipisicing elit. Molestias aut in asperiores recusandae
                    similique veritatis placeat nobis quis, debitis inventore.
                </p>
                <p> Elephants@me.com</p>
            </div>
            <div class="box">
                <h2 class="content-title">About our company </h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro, eum blanditiis provident cumque
                    libero velit! Obcaecati ipsum libero ducimus saepe.</p>
            </div>

        </section>

    </main>
    <footer id="main-footer" class="grid">
        <div>Elephants on parade</div>
        <div>Project by Shea <a href="#" target="_blank">elephants</a></div>
    </footer>

    

</body>

</html>
              
            
!

CSS

              
                /* Core styles */

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	background: #333;
	color: #fff;
	font-size: 1.1em;
	line-height: 1.5;
	text-align: center;
}

img {
	display: block;
	width: 100%;
	height: auto;
}
h1,
h2,
h3 {
	margin: 0;
	padding: 1em 0;
}

p {
	margin: 0;
	padding: 1em 0;
}

.btn {
	display: inline-block;
	background: #333;
	color: #fff;
	text-decoration: none;
	padding: 1em 2em;
	border: 1px solid #666666;
	margin: 0.5 0;
}
.btn:hover {
	background: #eaeaea;
	color: #333;
}

/*header Showcase*/

#showcase {
	min-height: 450px;
	color: #fff;
	text-align: center;
}

#showcase .Bg-image {
	position: absolute;
	background: #333
		url('https://images.pexels.com/photos/65282/elephants-animals-mammals-sharing-water-65282.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	height: 450px;
	z-index: -1;
	opacity: 0.4;
}

#showcase h1 {
	padding-top: 100px;
	padding-bottom: 0;
}

#showcase .content-wrap #section-a .content-wrap {
	padding: 0 1.5em;
}
/*section-a*/

#section-a {
	background: #eaeaea;
	color: #333;
	padding-bottom: 2em;
}

/*section-b*/

#section-b {
	padding: 2em 1em 2em;
}

#section-b ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#section-b li {
	margin-bottom: 1.5em;
	background: #fff;
	color: #333;
	padding: 1.5em;
}

.card-content {
	padding: 1.5em;
}

/*section-c*/

#section-c {
	background: #fff;
	color: #333;
	padding: 2em;
}
/*section-d*/
#section-d .box {
	padding: 2em;
	color: #fff;
}
#section-d .box:first-child {
	background: #2690d4;
}
#main-footer a{
    color: #2690d4;
    text-decoration: none;
}

/*media Queries*/

@media(min-width: 700px) {
    .grid{
        display: grid;
        grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
    }

    #section-a .content-text{
        columns: 2;
        column-gap:2em;
    }
    #section-a .content-text p {
        padding-top:0;
    }
    
.content-wrap,
    #section-b ul{
        grid-column:2/4;
    

}

.box, #main-footer div{
grid-column: span 2;
}

#section-b ul{
    display: flex;
    justify-content: space-around;
}

#section-b li{
width: 25%;


}
}
              
            
!

JS

              
                
              
            
!
999px

Console