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

              
                <body class="page">
   <main class="page__content">
      <section class="features">
         <div class="row  container">
            <div class="col  features__img-wrapper">
<!--                <img src="https://images.unsplash.com/photo-1457393568996-e452740c8346?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&s=4c57c0d43b2fb1e4f5e67b051cddb380" class="features__img" alt="cook at work image"> -->
               
               <div class="features__img-imitation">
                  <h2 class="features__title">
                     Предлагаемые<br>
                     <span class="features__title_yellow">нами услуги</span>
                  </h2>
               </div>
            </div>

            <section class="col  features__content">
               <div class="row">
                  <div class="col  feature-wrapper">
                     <section class="feature">
                        <span class="fa-stack  fa-lg">
                        <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                        <i class="fa  fa-home  fa-stack-1x" aria-hidden="true"></i>
                     </span>

                        <h3 class="feature__title">Выездные мастер-классы</h3>
                        <p class="feature__desc">
                           Наша просторная, яркая и&nbsp;уютная кулинарная студия &laquo;Кухня&raquo;&nbsp;&mdash; может стать замечательным местом проведения ваших личных и&nbsp;публичных событий.
                        </p>
                     </section>
                  </div>

                  <div class="col  feature-wrapper  feature-wrapper_secondary">
                     <section class="feature">
                        <span class="fa-stack  fa-lg">
                        <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                        <i class="fa  fa-home  fa-stack-1x" aria-hidden="true"></i>
                     </span>

                        <h3 class="feature__title">Курсы поваров</h3>
                        <p class="feature__desc">
                           Наша просторная, яркая и&nbsp;уютная кулинарная студия &laquo;Кухня&raquo;&nbsp;&mdash; может стать замечательным местом проведения ваших личных и&nbsp;публичных событий.
                        </p>
                     </section>
                  </div>
               </div>


               <div class="row">
                  <div class="col  feature-wrapper  feature-wrapper_main">
                     <section class="feature">
                        <span class="fa-stack  fa-lg">
                        <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                        <i class="fa  fa-home  fa-stack-1x" aria-hidden="true"></i>
                     </span>

                        <h3 class="feature__title">Аренда студии</h3>
                        <p class="feature__desc">
                           Наша просторная, яркая и&nbsp;уютная кулинарная студия &laquo;Кухня&raquo;&nbsp;&mdash; может стать замечательным местом проведения ваших личных и&nbsp;публичных событий. И&nbsp;еще немного текста для&nbsp;проверки работы сетки.
                        </p>
                     </section>
                  </div>

                  <div class="col  feature-wrapper">
                     <section class="feature">
                        <span class="fa-stack  fa-lg">
                        <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                        <i class="fa  fa-home  fa-stack-1x" aria-hidden="true"></i>
                     </span>

                        <h3 class="feature__title">Кейтеринг</h3>
                        <p class="feature__desc">
                           Наша просторная, яркая и&nbsp;уютная кулинарная студия &laquo;Кухня&raquo;&nbsp;&mdash; может стать замечательным местом проведения ваших личных и&nbsp;публичных событий.
                        </p>
                     </section>
                  </div>
               </div>


               <div class="row">
                  <div class="col  feature-wrapper">
                     <section class="feature">
                        <span class="fa-stack  fa-lg">
                        <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                        <i class="fa  fa-home  fa-stack-1x" aria-hidden="true"></i>
                     </span>

                        <h3 class="feature__title">Аренда студии</h3>
                        <p class="feature__desc">
                           Наша просторная, яркая и&nbsp;уютная кулинарная студия &laquo;Кухня&raquo;&nbsp;&mdash; может стать замечательным местом проведения ваших личных и&nbsp;публичных событий.
                        </p>
                     </section>
                  </div>

                  <div class="col  feature-wrapper  feature-wrapper_secondary">
                     <div class="feature  feature_empty">
                        <div class="feature__link-wrapper">
                           <a href="#" class="feature__link">
                              <span class="fa-stack  fa-lg  feature__link-icon">
                                 <i class="fa  fa-circle-thin  fa-stack-2x" aria-hidden="true"></i>
                                 <i class="fa  fa-list  fa-stack-1x" aria-hidden="true"></i>
                              </span> Посмотреть все услуги
                           </a>
                        </div>
                     </div>
                  </div>
               </div>
            </section>

         </div>
      </section>
   </main>
</body>
              
            
!

CSS

              
                /**  
 *  TODO
 *    + edit the .features__img-imitation;
 *    + edit the grid;
 *    - add a bottom line to the .feature__link and reaction on hover;
 *    - edit the feature__icon;
 *    - document the code;
 */

/* =========================================================
	BASE
	========================================================= */

/* SETUP */

:root {
	--main-font-family: "Open Sans", Arial, sans-serif;
	--base-font-size: 16px;
	--page-padding: 30px;
   --container-width: 1440px;
   --container-gap: calc( (100vw - var(--container-width)) / 2 );
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;

	font-family: var(--main-font-family);
	font-size: var(--base-font-size);
	color: #000;
	background-color: #eee;
}

img {
	max-width: 100%;
}





/* =========================================================
	MODULE
	========================================================= */

/* PAGE */

.page {
   padding-top: 150px;
   padding-bottom: 100px;
}

/* CONTAINER */

.container {
   max-width: var(--container-width);
   margin: auto;
}

/* edit */
.container_with_paddings {
   padding-right: var(--page-padding);
   padding-left: var(--page-padding);
   
   box-sizing: content-box;
}

/* GRID */

.row {
	display: flex;
}

.col {
	width: 50%;
}





/* =========================================================
	LAYOUT
	========================================================= */

/* FEATURES */

:root {
	--feature-icon-size: 35px;
}

.features {
   overflow: hidden;
}

.features__img-wrapper {
	width: 40%;
}

.features__img-imitation {
   float: right;
   
   display: flex;
   align-items: center;
   
   width: calc( 100% + var(--container-gap) );
   height: 100%;
   padding-left: var(--container-gap);
   
   background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
      url('https://source.unsplash.com/nvsHAsuFC54') #eee no-repeat center / cover;
}

.features__img {
   float: right;
   
   width: calc( 100% + var(--container-gap) );
   max-width: initial;
   height: 100%;
   object-fit: cover;
}

.features__title {
   margin: 0;
   padding-left: 30px;

   font-size: 50px;
   text-transform: uppercase;
   color: #fff;
   border-left: 10px solid #f1cd39;
}

.features__title_yellow {
   color: #f1cd39;
}

.features__content {
	width: 60%;
}

/* feature */

.feature-wrapper {
   position: relative;
   z-index: 200;
   
   display: flex;
   align-items: flex-start;
/* 	width: 40%; */
	background-color: #fff;
}

.feature-wrapper:nth-child(2)::before {
/* 	width: 60%; */
   position: absolute;
   z-index: -100;
   top: 0; left: 100%;
   
   content: '';
   width: var(--container-gap);
   height: 100%;
   
   background-color: inherit;
}

.feature-wrapper_main {
	background-color: #f1cd39;
}

.feature-wrapper_main .feature__desc {
	color: #444;
}

.feature-wrapper_secondary {
	background-color: #26262e;
}

.feature-wrapper_secondary .feature {
	color: #f1cd39;
}

.feature-wrapper_secondary .feature__desc {
	color: #b7b7bb;
}

.feature {
/* 	max-width: 445px; */
	padding: 30px;
	padding-top: 40px;

	color: #333;
}

.feature_empty {
   align-self: center;
   
	max-width: 100%;
	padding: 0 30px;
}

.feature__link-icon {
   margin-right: 15px;
}

.feature__link-icon .fa-list {
   font-size: 16px;
}

.feature__title {
	margin-top: 18px;
	margin-bottom: 15px;

	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.feature__desc {
	margin: 0;

	line-height: 1.5;
	color: #6a6b70;
}

.feature__link-wrapper {
	display: block;
	width: 100%;
}

.feature__link {
	color: inherit;
	text-decoration: none;

	display: inline-block;

	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

              
            
!

JS

              
                
              
            
!
999px

Console