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="ru">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Title</title>
	<link rel="stylesheet" href="styles/styles.css">
	
</head>
<body>
	<header>
		<div class="phone"><a href="tel:+2342342342">323423423423</a></div>
		<div class="address">Address, 63</div>
		<div class="time">Round the clock</div>
	</header>
<div class="nav">
<div class="company">Company name</div>
<ul class="navigation">
  <li><a href="index.html">Home</a></li>
  <li><a href="about.html">About</a></li>
  <li><a href="prices.html">Prices</a></li>
  <li><a href="contacts.html">Contacts</a></li>
</ul>
</div>
<div class="main">
<ul class="sidebar">
	<li><a href="1.html">lin1</a></li>
	<li><a href="2.html">link2</a></li>
	<li><a href="3.html">link3</a></li>
	<li><a href="4.html">link4</a></li>
	<li><a href="5.html">link5</a></li>
</ul>
<div class="preface">
<h1>Heading</h1>

<p>This is paraghraph one and its font-size is smaller than the second paragraph on mobile chrome Android in portrait mode.
</p>
<!-- *************** Block of Services *************** -->

<div class="services">
<div class="left-block">
	<figure>
			<img src="" alt="">
	</figure>
</div>
<div class="right-block">
  <p><a href="#">This</a> is the second paragraph and its font-size is bigger than the first on mobile chrome Android </p>
</div>
</div>
  </div>
  </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600');
body
{
    font-family: 'Open Sans', sans-serif;

    max-width: 960px;
    margin: 0 auto;
}
/**********  Header  *****************/
header,
footer
{
    display: flex;

    padding: 20px;

    color: white;
    background-color: #1b1a1a;

    justify-content: space-between;
}
.address,
.phone,
.time
{
    padding-left: 25px;
}
.address
{
    background: url() no-repeat left center;
}
.time
{
    background: url() no-repeat left center;
}
.phone
{
    background: url() no-repeat left center;
}
.phone a
{
    text-decoration: none;

    color: white;
}
.phone a:hover
{
    color: #ffa500;
}
/************** Transition link ******************/
a
{
    transition-duration: .4s;
    transition-property: all;
}

/**************  Navigation MENU   **************/
.nav
{
    display: flex;

    border-bottom: 1px solid #e5e5e5;

    justify-content: space-between;
}
.company
{
    font-size: 1.3em;
    font-weight: 600;
    /* border: 1px solid black; */

    padding: 17px;
}
.navigation
{
    display: flex;

    list-style: none;

    justify-content: flex-end;
}
.navigation a
{
    display: block;
    /*border: 1px solid black;*/

    padding: 1.4em;

    text-decoration: none;

    color: black;
}
.navigation a:hover,
.sidebar a:hover
{
    background-color: #ffa500;
}
.navigation a,
.sidebar a
{
    font-size: 15px;
    font-weight: 600;
}
.sidebar
{
    min-width: 200px;
    padding-left: 0;
}
.sidebar a
{
    display: block;

    padding: 1em;

    text-decoration: none;

    color: black;
    border-top: 1px solid rgba(255, 255, 255, .3);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    /*border: 1px solid grey;*/
    background: #f2f2f2;
}
.sidebar li:last-of-type a
{
    border-bottom: none;
}
/******************** Services ***************************/
.main
{
    display: flex;
    /*border: 1px solid green;*/
}
.preface
{
    padding-top: 20px;
    /*border: 1px solid red;*/
    padding-right: 40px;
    padding-left: 40px;
}
.services
{
    display: flex;

    margin-top: 5px;
    /* border: 1px solid grey; */
}

.left-block img
{
    width: 212px;
    height: 150px;
}

.right-block a
{
    font-weight: 600;

    color: black;
}
.right-block p
{
    padding-top: 80px;
    padding-left: 20px;
}
h1
{
    font-size: 1.6em;
    font-weight: 600;
    /*border: 1px solid black;*/

    padding-bottom: 20px;

    text-align: left;
    /*text-transform: uppercase;*/

    color: black;
}
p
{
    font-size: .96em;

    padding-bottom: 20px;
}
footer
{
    margin-top: 20px;
    padding: 20px;
}

/********************  Media - Header  ******************/
@media (max-width: 800px)
{
    header,
    footer
    {
        flex-direction: column;

        align-items: center;
    }
    .address,
    .phone,
    .time
    {
        margin-top: 5px;
    }
    .phone a
    {
        color: #ffa500;
        text-shadow: 2px 2px 8px #ffa500;
    }
    .services
    {
        flex-direction: column;
    }
    .left-block img
    {
        width: 100%;
        height: 100%;
    }
    .right-block p
    {
        padding-top: 10px;
        padding-left: 0;
    }

/************  Media - Navigation  ********************/

    .navigation
    {
        justify-content: space-around;
    }
    .left-block img
    {
        width: 100%;
        height: 100%;
    }
    .sidebar
    {
        display: none;
    }
}
@media (max-width: 600px)
{
    .nav
    {
        flex-direction: column;

        border-bottom: none;
    }
    .company
    {
        margin: 0 auto;
    }
    .navigation
    {
        flex-direction: column;

        padding: 0;

        background: #f2f2f2;
    }

    .navigation a,
    .sidebar a
    {
        padding: 10px;

        text-align: center;

        border-top: 1px solid rgba(255, 255, 255, .3);
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }

    .navigation li:last-of-type a
    {
        border-bottom: none;
    }
    .main
    {
        flex-direction: column-reverse;
    }
    .sidebar
    {
        width: 100%;
    }
    .preface
    {
        padding-right: 15px;
        padding-left: 15px;
    }
    h1
    {
        text-align: center;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console