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 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="ru">
<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="style1.css">
    <link href="https://fonts.googleapis.com/css?family=Lato|Poppins&display=swap" rel="stylesheet">
    <title>Блок сравнение цен html и css</title>
</head>
<body>
    <section class='price-comparison'>
        <div class="price-column">
            <div class="price-header">
                <div class="price">
                    <div class="ruble-sign">&#8381</div>
                    0
                    <div class="per-month">/мес.</div>
                </div>
                <div class="plan-name">Базовый</div>
            </div>
                <div class="divider"></div>
                <div class="feature">
                        <img src="check-circle.svg">
                        13 курсов бесплатно
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Практика
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Доступ к сообществу
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        60 курсов
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        Пожизненный доступ к теории
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        Поддержка
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        Более 100 испытаний
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        Проекты в портфолио
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                         Персональный наставник
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                         Гарантированная стажировка
                      </div>
                    
                    <button class="cta">Начни сегодня</button>
                  </div>
          
        <div class="price-column popular">
            <div class="price-header">
                <div class="price">
                    <div class="ruble-sign">&#8381</div>
                    1500
                    <div class="per-month">/мес.</div>
                </div>
                <div class="plan-name">Профессиональный</div>
            </div>
                <div class="divider"></div>
                <div class="feature">
                        <img src="check-circle.svg">
                        13 курсов бесплатно
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Практика
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Сообщество
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        60 курсов
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Пожизненный доступ к теории
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Поддержка
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Более 100 испытаний
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                        Проекты в портфолио
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                         Персональный наставник
                      </div>
                      <div class="feature inactive">
                        <img src="x-square.svg">
                         Гарантированная стажировка
                      </div>                    
                    <button class="cta">Начни сегодня</button>                
        </div>
        <div class="price-column">
            <div class="price-header">
                <div class="price">
                    <div class="ruble-sign">&#8381</div>
                    12500
                    <div class="per-month">/мес.</div>
                </div>
                <div class="plan-name">Премиум</div>
            </div>
                <div class="divider"></div>
                <div class="feature">
                        <img src="check-circle.svg">
                        13 курсов бесплатно
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Практика
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Сообщество
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        60 курсов
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Пожизненный доступ к теории
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Поддержка
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Более 100 испытаний
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                        Проекты в портфолио
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                         Персональный наставник
                      </div>
                      <div class="feature">
                        <img src="check-circle.svg">
                         Гарантированная стажировка
                      </div>
                    
                    <button class="cta">Начни сегодня</button>
                  </div>
               </section>
</body>
</html>
              
            
!

CSS

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


  :root {
    --accent-color: #641BFF;
    --heading-font-family: 'Poppins', sans-serif;
    --body-font-family: 'Lato', sans-serif;
  }

  body {
      margin: 0;
      background-color: #F8F9FB;
      display: flex;
      justify-content: center;
      align-items: center;
      font-family: var(--body-font-family);
  }

  .price-comparison {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 3rem;
  }

  .price-column {
    background-color: white;
    box-shadow: 0 7px 30px rgba(52, 31, 97, 0.1);
    padding: 1rem;
    flex-grow: 1;
    flex-basis: 0;
    max-width: 275px;
    border-radius: 8px;
  }

  .price-column.popular {
    background-color: var(--accent-color);
    box-shadow: 0 7px 30px rgba(52, 13, 135, 0.3);
    color: white;
    margin-top: -0.5rem;
    padding-top: 1.4rem;
    margin-bottom: -.5rem;
    padding-bottom: 3rem;
  }

  .price-column:first-child {
    border-top-right-radius: 0; 
    border-bottom-right-radius: 0; 
  }
  
  .price-column:last-child {
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0; 
  }

  .price-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--heading-font-family);
    font-weight: bold;
  }

  .price {
    font-size: 3.3rem;
    display: flex;
  }

  .ruble-sign {
    font-size: 1.5rem;
    margin-top: .5rem;
    margin-right: .25rem;
  }

  .per-month {
    font-size: .75rem;
    align-self: flex-end;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
  }

  .plan-name {
    text-transform: uppercase;
    font-size: .9rem;
    margin-bottom: 0;
  }

  .divider {
    height: 1px;
    width: 100%;
    background-color: rgba(0, 0, 0, .2);
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .price-column.popular .divider {
    background-color: rgba(255, 255, 255, .2);
  }

  .feature {
    display: flex;
    align-items: center;
    margin: .4rem;
  }


  .feature img {
    height: 1.1em;
    width: 1.1em;
    margin-right: .5rem;
  }

  .feature.inactive {
    color: #999;
  }

  .cta {
    border: none;
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    padding: .75rem 1rem;
    cursor: pointer;
    font-family: var(--heading-font-family);
    font-weight: bold;
    border-radius: 4px;
    margin-top: 3rem;
    transition: 100ms;
    transform: scale(1);
  }

  .price-column.popular .cta {
    background-color: white;
    color: var(--accent-color);
  }

  .cta:hover, .cta:focus {
    transform: scale(1.1);
  }
              
            
!

JS

              
                
              
            
!
999px

Console