Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <article>
  <aside class="aside float-left mr-2">
    <h2>Александр Макаров</h2>
    <p>Один из&nbsp;разработчиков PHP-фреймворка Yii</p>
  </aside>
  <main>
    <h1>На&nbsp;ближайшие 15-20 лет у&nbsp;PHP-разработчиков будет много работы</h1>

    <p>PHP&nbsp;&mdash; отличный язык для веб-разработки и&nbsp;API. У&nbsp;него хорошая инфраструктура, есть семантическое версионирование, фреймворки под разные хостинги и&nbsp;инструменты мониторинга. PHP находится в&nbsp;десятке лучших языков уже более 20&nbsp;лет, на&nbsp;нем ведут свои проекты крупные компании, а&nbsp;это значит, что у&nbsp;него хорошие перспективы.</p>
    <p>PHP&nbsp;&mdash; это язык номер один по&nbsp;перформансу среди интерпретируемых языков в&nbsp;мире. Радует, что с&nbsp;каждой новой версией производительность языка возрастает.</p>
    <aside class="aside float-right ml-2">
      <h2>Читайте также</h2>
      <p>&laquo;Комьюнити у&nbsp;PHP сейчас одно из&nbsp;самых активных&raquo;: интервью c&nbsp;разработчиком Yii Framework Александром Макаровым</p>
    </aside>
    <p>Также у&nbsp;PHP недавно появились альтернативные рантаймы (среды выполнения), типа RoadRunner. Они позволяют срезать расходы ресурсов компаний на&nbsp;инициализацию приложения&nbsp;&mdash; на&nbsp;настройку и&nbsp;запуск всех необходимых библиотек и&nbsp;фреймворков.</p>
    <p>Кстати, с&nbsp;новыми версиями у&nbsp;PHP появилась возможность включать строгую типизацию. Это сильно помогает в&nbsp;написании кода, так как синтаксис стал более лаконичным.</p>
  </main>
</article>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
  width: 800px;
  margin-top: 50px;
  
  font: 18px/1.5 'Inter', sans-serif;
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 0.1em;
  
  line-height: 1.3;
}

.aside {
  width: 20%;
  padding: 20px 30px;
  margin: 0 0 10px;
  
  font-size: 14px;
  
  border: 4px solid #000;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.mr-2 {
  margin-right: 2em;
}

.ml-2 {
  margin-left: 2em;
}
              
            
!

JS

              
                
              
            
!
999px

Console