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

              
                <section>
<h1>LOGO.RU</h1>
<hr>
<h2>Портфолио фотографа</h2>
<p>При уменьшении окна браузера, вы увидите, как работает адаптивность.</p>

<div class="row">
  <div class="column">
    <div class="content">
	  <a target="_blank"  href="mountains.jpg">
      <img src="mountains.jpg" alt="Mountains">
	  </a>  
      <h3>Крутая гора</h3>
      <p>Идейные соображения высшего порядка, а также консультация с широким активом позволяет оценить значение существенных финансовых и административных условий.</p>
    </div>
  </div>
  <div class="column">
    <div class="content">
	<a target="_blank"  href="lights.jpg">
    <img src="lights.jpg" alt="Lights">
	</a>
      <h3>Лувр ночью</h3>
      <p>Идейные соображения высшего порядка, а также консультация с широким активом позволяет оценить значение существенных финансовых и административных условий.</p>
    </div>
  </div>
  <div class="column">
    <div class="content">
	<a target="_blank"  href="nature.jpg">
    <img src="nature.jpg" alt="Nature">
	</a>
      <h3>Две бабочки</h3>
      <p>Идейные соображения высшего порядка, а также консультация с широким активом позволяет оценить значение существенных финансовых и административных условий.</p>
    </div>
  </div>
  <div class="column">
    <div class="content">
	<a target="_blank"  href="face.jpg">
    <img src="face.jpg" alt="Face">
	</a>
      <h3>Женский облик</h3>
      <p>Разнообразный и богатый опыт реализация намеченных плановых заданий требуют определения и уточнения дальнейших направлений развития. </p>
    </div>
  </div>
</div>

<div class="content">
  <a target="_blank"  href="lion.jpg">
  <img src="lion.jpg" alt="Lion">
  </a>
  <h3>Царь зверей</h3>
  <p>Разнообразный и богатый опыт реализация намеченных плановых заданий представляет собой интересный эксперимент проверки дальнейших направлений развития.</p>
  <p>Идейные соображения высшего порядка, а также консультация с широким активом позволяет оценить значение существенных финансовых и административных условий.</p>
</div>
</section>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}

body {
    background-color: #f1f1f1;
    padding: 20px;
    font-family: Arial;
}

section {
    max-width: 1000px;
    margin: auto;
}

h1 {
    font-size: 50px;
    word-break: break-all;
}

.row {
    margin: 8px -16px;
}


.row,
.row > .column {
    padding: 8px;
}

.column {
    float: left;
    width: 25%;
}

 .row:after {
    content: "";
    display: table;
    clear: both;
}

.content {
    background-color: white;
    padding: 10px;
}

img {
	width: 100%;
}


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


@media screen and (max-width: 600px) {
    .column {
        width: 100%;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console