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

              
                <header>
	<nav class="navbar navbar-default">
	  <div class="container">
		  <img src="http://www.needlework.ru/UserFiles/Image/Logotypes/heineken_logo_machine_embroidery_design.jpg" alt="" class="brand-logo" />
		<h1>Brand name</h1>
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
		  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		  </button>
		  <!--<a class="navbar-brand" href="#">Brand</a>-->
		</div>

		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		  <ul class="nav navbar-nav">
			<li class="active"><a href="#">Beer <span class="sr-only">(current)</span></a></li>
			<li><a href="#">More beer</a></li>
			<li><a href="#">Another Beer</a></li>
			<li><a href="#">Home brewed</a></li>
		  </ul>
		</div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
</header>
<section class="row dummy-fill">
	<div class="container">
		<div class="col-md-12">
			<h2>This amazing article</h2>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum odio omnis, deserunt voluptatibus, inventore magni fugiat ut sit quasi tempora voluptatum rerum pariatur fugit voluptas accusamus recusandae. Rem harum repudiandae optio, voluptates quidem consectetur tempore! Est id dolores recusandae maiores optio facere, illum quam qui nihil temporibus odit et, eum reiciendis. Nisi repellendus, ipsam, dolorem delectus labore repudiandae nihil at placeat cum excepturi ratione alias minus tenetur iusto? Voluptas repudiandae commodi non, adipisci maiores earum architecto dolore delectus eum dolores veniam vel deserunt error ipsa accusantium quis eos dicta neque, rem temporibus laboriosam aut odio impedit. Eos repellat reprehenderit delectus, esse laudantium id et ex aperiam? Debitis ab, ut quam dicta deserunt minus corrupti voluptas non, tempore quas, voluptatum, sunt omnis praesentium quae saepe nemo accusantium ullam voluptatem similique. Blanditiis esse enim saepe dolores ex exercitationem, sit asperiores impedit eligendi, nemo quod explicabo nobis numquam velit libero perspiciatis nesciunt magnam vitae magni accusantium dolorum provident corporis reprehenderit! Et velit nihil molestias non ratione culpa autem repellat mollitia iste voluptatum, totam ut modi, illum molestiae atque dolorum est ipsum itaque temporibus odit? Labore, aliquid facilis, culpa nulla animi vel incidunt earum optio, quo sequi maxime rem repudiandae quidem laudantium possimus ex.</p>
		</div>
	</div>
</section>
              
            
!

CSS

              
                header
	background: none
	h1
		margin: 15px 0 0 27px
		padding: 0
		display: inline-block
.brand-logo
	width: 100px
	height: 100px
	display: inline-block
	margin: 10px 10px 0 0
	float: right
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover
	background: none
	color: #222

@media (max-width: 768px)
	header
		h1
			position: absolute
			left: 75px
			top: 5px
			margin: 0
		.brand-logo 
			float: left
			width: 50px
			height: 50px
			position: absolute
			margin: 0
		.nav a
			padding: 10px 10px 10px 30px

.dummy-fill
	.container
		background: #cacaca
// removing default bootstrap styles
header
	.container-fluid
		padding-left: 0
	.navbar-default
		background: none
		border: none
              
            
!

JS

              
                
              
            
!
999px

Console