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

              
                <!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <link rel="stylesheet" href="./style.css">
    </head>

    <body>
        <div class="main">
            <!-- Product -->
            <div class="main__product">
                <div class="main__product-img" style="background-image: url(https://img.tickid.vn/photos/resized/450x450/83-1580889448-myphamohui-lgvina.png);"></div>
                
                <div class="main__product-info">
                    <h1 class="main__product-name">
                        Set sữa rửa mặt Ohui Prime Gel Cleanser
                    </h1>
                    <h3 class="main__product-price">1.035.000đ</h3>
                    <p class="main__product-desc">
                        OHUI PRIME GEL CLEANSER- SỮA RỬA MẶT DẠNG GEL .
                        Rửa mặt thôi mà cũng làm da căng bóng mướt mịn, có tin ko ạ?
                        Tháng này Ohui cho ra 1 em sữa rửa mặt không những làm sạch da còn giúp da căng bóng sáng khoẻ, phê pha lắm nhé.
                    </p>
                </div>
            </div>

            <!-- Column layout -->
            <div class="column-layout">
                <div class="column-layout__category">
                    <h2>Category</h2>
                    <ul class="column-layout__list">
                        <li class="column-layout__item">
                            <a href="">Javascript</a>
                        </li>
                        <li class="column-layout__item">
                            <a href="">PHP</a>
                        </li>
                        <li class="column-layout__item">
                            <a href="">Ruby</a>
                        </li>
                        <li class="column-layout__item">
                            <a href="">Dart</a>
                        </li>
                        <li class="column-layout__item">
                            <a href="">Python</a>
                        </li>
                    </ul>
                </div>
                
                <div class="column-layout__container">
                    <div class="column-item">
                        <h2>Course 1</h2>
                        <p>I'm writing to you in reference to the job position advertised MyCV.vn which immediately appealed to me.Since I've been interested in your company for a long time, I would like to apply today as a Sample position in permanent employment.</p>
                    </div>
                    <div class="column-item">
                        <h2>Course 2</h2>
                        <p>I'm writing to you in reference to the job position advertised MyCV.vn which immediately appealed to me.Since I've been interested in your company for a long time, I would like to apply today as a Sample position in permanent employment.</p>
                    </div>
                    <div class="column-item">
                        <h2>Course 3</h2>
                        <p>I'm writing to you in reference to the job position advertised MyCV.vn which immediately appealed to me.Since I've been interested in your company for a long time, I would like to apply today as a Sample position in permanent employment.</p>
                    </div>
                    <div class="column-item">
                        <h2>Course 4</h2>
                        <p>I'm writing to you in reference to the job position advertised MyCV.vn which immediately appealed to me.Since I've been interested in your company for a long time, I would like to apply today as a Sample position in permanent employment.</p>
                    </div>
                </div>
            </div>

            <!-- Feature layout -->
            <div class="feature-layout">
                <div class="feature-item">
                    <h2>Feature 1</h2>
                    <p>I'm writing to you in reference to the job position advertised MyCV.vn which immediately appealed to me.Since I've been interested in your company for a long time, I would like to apply today as a Sample position in permanent employment.</p>
                </div>
                <div class="feature-item">
                    <h2>Feature 2</h2>
                    <p>At the moment I'm working as a Sample position at Sample company.My most important tasks include familiarizing myself with new products, conducting sales talks and transferring orders.</p>
                </div>
                <div class="feature-item">
                    <h2>Feature 3</h2>
                    <p>Your job list sounds great! I hope that this will enable me to develop personal and professional development opportunities.I like your focus and image in this industry very well, so I see you as a very interesting employer.I have been following your development for a long time in the media and therefore believe that I also fit in well with the company.</p>
                </div>
            </div>
        </div>
    </body>
</html>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.main {
    width: 1200px;
    min-height: 100vh;
    max-width: 100%;
    margin: 10px auto 360px;
    background-color: #fff;
    padding-bottom: 20px;
}

/* Product */
.main__product {
    display: flex;
    padding: 10px;
}

.main__product-img {
    width: 40%;
    padding-top: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
}

.main__product-info {
    width: 60%;
    padding: 10px;
}

/* Column layout */
.column-layout {
    margin-top: 36px;
    padding: 12px 0;
    background-color: #fff;
    display: flex;
}

.column-layout__category {
    width: 20%;
    padding: 0 16px;
}

.column-layout__container {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
}

.column-item {
    width: 25%;
    padding: 0 16px;
}

/* Feature layout */
.feature-layout {
    margin-top: 36px;
    display: flex;
    justify-content: space-around;
}

.feature-item {
    padding: 12px 16px;
    margin-top: 16px;
    flex-basis: 30%;
}

.feature-item:nth-child(1) {
    background-color: rgb(192, 227, 222);
}

.feature-item:nth-child(2) {
    background-color: rgb(227, 200, 192);
}

.feature-item:nth-child(3) {
    background-color: rgb(226, 192, 227);
}

/* Mobile: width < 740px */
@media only screen and (max-width: 46.1875em) {
    
}

/* Tablet: width >= 740px and width < 1024px */
@media only screen and (min-width: 46.25em) and (max-width: 63.9375em) {
    
}

              
            
!

JS

              
                
              
            
!
999px

Console