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

              
                <header>
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<div class="bg hidden-xs"></div>
				<div class="bg2 visible-xs"></div>
				<div class="row">
					<div class="col-lg-3 col-md-4 col-sm-5 col-xs-12">
						<a href="/" class="logo">
							<span>Все для дачи!</span>
						</a>
					</div>
					<div class="col-lg-2 col-md-3 col-sm-3 col-lg-offset-4 col-md-offset-2 col-sm-offset-0 col-xs-12">
						<div class="phone">
							8 (495) 123 45 67
						</div>
					</div>
					<div class="col-lg-2 col-md-2 col-sm-3 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-xs-12 col-xs-offset-0">
						<a href="#" class="catalog"><span></span>каталог</a>
					</div>
				</div>
			</div>
		</div>
	</div> 
</header> 
              
            
!

CSS

              
                header {
    height: 72px;
    background-color: #ffea00;
    position: relative;
}
header .bg{
    background: url(http://dachnik33.ru/template/imgcss/header-bg.png) 0 0 repeat-x;
    height: 77px;
    width: 1920px;
    position: absolute;
    top: 0px;
    left: -950px;
}
@media (max-width:1199px) {
    header .bg{
            left: -1105px;
    }
}
@media (max-width:991px) {
    header .bg{
            left: -1350px;
    }
}
header .logo {
    display: block;
    height: 34px;
    margin-top: 13px;
    padding-top: 9px;
    padding-left: 126px;
    text-decoration: none !important;
    background: url('http://dachnik33.ru/template/imgcss/logo.png') 0 0 no-repeat;
}
header .logo span{
    display: block;
    color: #ffffff;
    font-family: "Proxima Nova";
    font-size: 18px;
    font-weight: 300;
    position: relative;
}
header .logo span:before{
    content:"";
    width: 1px;
    height: 14px;
    position: absolute;
    top:3px;
    left:-28px;
    background-color: rgba(255, 255, 255, 0.44);
}
header .phone{
    text-align:right;
    color: #ffffff;
    font-family: "Proxima Nova";
    font-size: 18px;
    font-weight: 400;
    position: relative;
    margin-top: 23px;
}
header .phone:before{
    content:"";
    position: absolute;
    top:-4px;
    left:-15px;
    width: 32px;
    height: 33px;
    background:url(http://dachnik33.ru/template/imgcss/phone.png);
}
@media (max-width:991px) {
    header .phone:before{
        left:-27px;
    }
}
header .catalog{
    display: block;
    color: #000000;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 64px;
    position: relative;
    margin-top: 26px;
    text-decoration: none !important;
}
header .catalog span{
    display: block;
    position: absolute;
    top:9px;
    left:33px;
    width: 16px;
    height: 2px;
    background-color: #7dd500;
}
header .catalog span:before{
    content:'';
    display: block;
    position: absolute;
    top:-5px;
    left:0px;
    width: 16px;
    height: 2px;
    background-color: #7dd500;
}
header .catalog span:after{
    content:'';
    display: block;
    position: absolute;
    top:5px;
    left:0px;
    width: 16px;
    height: 2px;
    background-color: #7dd500;
}
header .phone:after{
    content:"";
    display: block;
    position: absolute;
    top:-23px;
    right:-167px;
    width: 155px;
    height: 127px;
    background: url(http://dachnik33.ru/template/imgcss/leaf.png);
}
@media (max-width:991px) {
    header .phone:after{
        right:-144px;
    }
}

@media (max-width:767px) {
    header{
        height: auto;
    }
    header .logo{
        width: 240px;
        margin: 0 auto;
        margin-top: 13px;
    }
    header .bg2{
        height: 110px;
        background: url(http://dachnik33.ru/template/imgcss/header-bg2.png) 0 0 repeat-x;
        width: 1920px;
        position: absolute;
        top: 0px;
        left: -950px;
    }
    header .phone:before{
        left: 50%;
        margin-left: -95px;
    }
    header .phone{
        text-align: center;
        padding-left: 50px;
    }
    header .catalog{
        padding-left: 0;
        text-align: center;
        padding-bottom: 15px;
        padding-top: 15px;
        margin-top: 20px;
    }
    header .catalog span{
        top: 23px;
        left: 50%;
        margin-left: -65px;
    }
    header .bg,
    header .bg2{
        width: 100%;
        left:0px;
    }
    header .phone:after{
        display: none;
    }
}
              
            
!

JS

              
                //попробуйте поресайзить окно браузера и увидите как зеленая волнистая линия накладывается друг на друга

//решено! 
              
            
!
999px

Console