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

              
                <div class="container">
  <!-- ruban avec image-->
  <div class="first"></div>
    <div id="headline">
			<h1>RESPONSIVE, FREE AND SLEEK</h1>
			<p>Efficiently drive goal-oriented leadership skills via enabled content. Interactively leverage other's B2C collaboration and idea-sharing rather than parallel catalysts for change. Phosfluorescently matrix principle-centered models vis-a-vis market 
      </p>
		  <p><a href="#">Stay tuned!</a></p>
		  <span id="corner"></span>
		 </div>
  
  
    <!-- Etiquette avec pseudo élement-->
  <div id="bloc">
    <h1>RESPONSIVE, FREE AND SLEEK</h1>
    <p>Zeni is a FREE Responsive HTML 5 Template. Hope you enjoy it           using it as i enjoyed creating it. I plan to release a WordPress          Version pretty soon. 
    </p>
  </div>
  <!-- Ruban avec pseudo element by Naoya-->
  <div class="box">
    <div class="ruban left"><span>Texte</span></div>
  </div>
  
  <!-- Autre Ruban avec pseudo element-->
  <div class="ruban2 ">
    <h3>Titre</h3>
    <p>Continually evolve high standards in synergy after next-generation growth strategies.</p>
</div>

 <!-- Menu avec Ruban avec pseudo element--> 
<nav id="access" class="access" role="navigation">
        <div id="menu" class="menu">
        	<ul id="tiny">
				<li><a href="index.html">Blog</a>
					
				</li>
				<li><a href="gallery.html">Gallery</a></li>
				<li><a href="misc.html">Styles</a>
					
				</li>
				<li><a href="about.html">About</a></li>
				<li><a href="contact.html">Contact</a></li>
			</ul>
		</div>
		<div class="triangle-l"></div>
		<div class="triangle-r"></div>
  </nav>
   <!-- Bloc avec etiquette-->
  <div class="content">
    <div class="corner"></div>
  </div>
</div>
              
            
!

CSS

              
                /*ruban avec image*/
#headline{
	position: relative;
	margin:auto;
  background:#555;
	width: 260px; /* 300 - 40 padding */
	min-height: 275px;
	margin-top: -37px;
	padding: 70px 20px 20px 20px;;
}

#headline #corner{
	display: block;
	position: absolute;
	top:0;
	left: -4.5%;
	width: 14px;
	height: 18px;	
	background: url(http://luiszuno.com/themes/zeni/img/sidebar-corner.png) no-repeat;
}

.first{background:#444;width:auto;margin-top:50px;height:19px}

/*Etiquette avec pseudo élement*/
#bloc {
  position: relative;
  width: 30%;
  padding: 1em 1.5em;
  margin: 2em auto;
  color: #fff;
  background: #97C02F;
}
#bloc:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 20px 20px 0;
  border-style: solid;
  border-color: #658E15 #fff;
}

/*Ruban avec pseudo element by Naoya*/
.box{
	width: 500px;
	height: 300px;
  margin:  0 auto;
	background-color: #ccc;
	position: relative;
	border: 4px solid #333;
}

.ruban {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: absolute;
}
.ruban::before,
.ruban::after {
  position: absolute;
  z-index: -1;
  content: '';
  display: block;
  border: 5px solid #000;
}

.ruban span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 15px 0;
  background-color: #658E15;
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
  color: #fff;
  text-align: center;
}
.left {
  top: -10px;
  left: -10px;
}

.left::before {
  top: 0;
  right: 0;
}
.left::after {
  bottom: 0;
  left: 0;
}
.left span {
  right: -25px;
  top: 30px;
  transform: rotate(-45deg);
}

/*Autre Ruban avec pseudo element */
.ruban2 {
    width: 500px;
    margin: 10px auto;
    padding: 0 10px 0;
    position: relative;
    color: #444;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ruban2 h3 {
    display: block;
    height: 30px;
    line-height: 1.5;
    width: 512px;
    margin: 0;
    padding: 5px 10px;
    position: relative;
    left: -16px;
    top: 8px;
    color: #cfcfcf;
    background: #333;
    background: linear-gradient(top, #383838 0%, #262626 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.ruban2 h3::before,
.ruban2 h3::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    bottom: -10px;
    z-index: -1;
    border: 5px solid;
    border-color: #242424 transparent transparent transparent;    
}
.ruban2 h3::before {left: 0;}
.ruban2 h3::after {right: 0;}

/*Menu avec Ruban*/

.access{max-width:500px;margin:auto}
.triangle-l {
	border-color: transparent #793e3e transparent transparent;
	border-style:solid;
	border-width:9px;
	height:0px;
	width:0px;
	position: relative;
	left: -18px;
	top: -9px;
	z-index: -1; 
}

.triangle-r {
	border-color: transparent transparent transparent #793e3e;
	border-style:solid;
	border-width:9px;
	height:0px;
	width:0px;
	position: relative;
	left: 500px;
	top: -26px;
	z-index: -1; 
}

#access .menu ul {
	margin: 0;
	list-style-type: none;
	letter-spacing: normal;
	position: relative;
	text-align: center;
	z-index: 1001;
	height: 42px;
	margin: 0 -9px;
	background: #b05a5a;
}
#access .menu ul li {
	position: relative;
	display: inline-block;
	padding: 0 15px;
	z-index: 101;
	padding-top: 8px;
	background: none;
	height: 34px;
}
#access .menu ul li a {
	display: inline-block;
	text-decoration: none;
	font-size: 14px;
	line-height: 1;
	color: #f3f3f3;
}
#access .menu ul li a:hover, 
#access .menu ul li.active a, 
#access .menu ul li a.selected {
	color: #3c3c3c;
}
/*Bloc avec etiquette*/
.content{
  width:500px; 
  height:500px;
  background-color:#eee; 
  margin: 0 auto;
  position:relative;
  overflow:hidden;
}
.corner{
  position:absolute;
  width:200px;
  height:200px;
  background-color:#999;
  -webkit-transform:rotate(45deg);
 transform:rotate(45deg);
  top:-100px;
  right:-100px
}
              
            
!

JS

              
                
              
            
!
999px

Console