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>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <script src="https://kit.fontawesome.com/b52600e1d0.js"></script>
    <title>Responsive Services Section</title>
</head>

<body>

    <div class="servicesSection">
        <div class="innerWidth">
            <h1 class="sectionTitle">Our Services</h1>
            <div class="boarder"></div>
            <div class="servicesContainer">
                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-bicycle"></i>
                    </div>
                    <div class="serviceTitle">aenean sed</div>
                    <div class="serviceDesc">mauris sit amet massa vitae tortor condimentum lacinia quis vel eros donec
                        ac odio tempor orci dapibus ultrices in iaculis</div>
                </div>

                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-biking"></i>
                    </div>
                    <div class="serviceTitle">sit amet</div>
                    <div class="serviceDesc">venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam sem
                        fringilla ut morbi tincidunt augue interdum velit euismod in

                    </div>
                </div>

                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-car-side"></i>
                    </div>
                    <div class="serviceTitle">non diam

                    </div>
                    <div class="serviceDesc">diam phasellus vestibulum lorem sed risus ultricies tristique nulla aliquet
                        enim tortor at auctor urna nunc id cursus metus aliquam</div>
                </div>

                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-bus"></i>
                    </div>
                    <div class="serviceTitle">diam maecenas</div>
                    <div class="serviceDesc">sit amet cursus sit amet dictum sit amet justo donec enim diam vulputate ut
                        pharetra sit amet aliquam id diam</div>
                </div>

                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-shuttle-van"></i>
                    </div>
                    <div class="serviceTitle">vel orci



                    </div>
                    <div class="serviceDesc">tristique et egestas quis ipsum suspendisse ultrices gravida dictum fusce
                        ut placerat orci nulla pellentesque dignissim enim sit amet venenatis</div>
                </div>

                <div class="serviceBox">
                    <div class="serviceIcon">
                        <i class="fas fa-plane"></i>
                    </div>
                    <div class="serviceTitle">ullamcorper sit



                    </div>
                    <div class="serviceDesc">egestas pretium aenean pharetra magna ac placerat vestibulum lectus mauris
                        ultrices eros in cursus turpis massa tincidunt dui ut ornare</div>
                </div>
            </div>
        </div>
    </div>

</body>

</html>
              
            
!

CSS

              
                * {
    margin: 0;
    padding: 0;
    font-family: "montserrat", sans-serif;
    box-sizing: border-box;
}

.servicesSection {
    /* background: url(https://images.pexels.com/photos/2079228/pexels-photo-2079228.jpeg?cs=srgb&dl=beach-daylight-enjoyment-2079228.jpg&fm=jpg); */
    background-size: cover;
    padding: 60px 0;
    background-color: #dfe6e9;

}

.innerWidth {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

.sectionTitle {
    text-align: center;
    color: #1abc9c;
    text-transform: uppercase;
    font-size: 30px;
}

.boarder {
    width: 160px;
    height: 2px;
    background: #1abc9c;
    margin: 40px auto;
}

.servicesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.serviceBox {
    max-width: 33.33%;
    padding: 10px;
    text-align: center;
    color: #353b48;
    cursor: pointer;
}

.serviceIcon {
    display: inline-block;
    width: 70px;
    height: 70px;
    border: 3px solid #7f8c8d;
    color: #7f8c8d;
    transform: rotate(45deg);
    margin-bottom: 30px;
    margin-top: 15px;
    transition: 0.3s linear;
}

.serviceIcon i {
    line-height: 70px;
    transform: rotate(-45deg);
    font-size: 25px;
}

.serviceBox:hover .serviceIcon {
    background: #1abc9c;
    color: #ddd;
}

.serviceTitle {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.serviceDesc {
    font-size: 14px;
}

@media screen and (max-width: 960px) {
    .serviceBox {
        max-width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .serviceBox {
        max-width: 50%;
    }
}

@media screen and (max-width: 480x) {
    .serviceBox {
        max-width: 100%;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console