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

              
                <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="sith-style.css">
    <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <title>Mon premier Sith Internet</title>
  </head>
  <body>
<div class="container">
  <div class="row">
    <div class="background">

    </div>
  </div>
  <div class="row">
    <div class="col-xs-1  col-xs-offset-4 darth trianleft"></div>
    <div class="col-xs-2 darth helmet"></div>
    <div class="col-xs-1 darth trianright"></div>
</div>
<div class="row">
  <div class="col-xs-1 col-xs-offset-4 darth"></div>
  <div class="col-xs-2  helmet darth position">
    <div class="front">

    </div>
  </div>
  <div class="col-xs-1 darth"></div>

</div>
<div class="row">
  <div class="col-xs-1 col-xs-offset-3 darth1 trianleft"></div>
  <div class="col-xs-2 darth1 position">
    <div class="eyeleft">
    </div>
  </div>
  <div class="col-xs-2 darth1 position">
    <div class="eyeright">
    </div>
  </div>
  <div class="col-xs-1 darth1 trianright"></div>
</div>
<div class="row">
  <div class="col-xs-1 col-xs-offset-2 darth1 trianleft"></div>
  <div class="col-xs-1 darth1"></div>
  <div class="col-xs-2 mouthleft posiion">
<div class="container-fluid"> <!-- début grille bouche -->
  <div class="row">
    <div class="col-xs-1 col-offset-1"></div>
    <div class="col-xs-1 col-offset-1 darth3"></div>
    <div class="col-xs-1 col-offset-1"></div>
    <div class="col-xs-1 col-offset-1 darth3"></div>
  </div>

</div><!-- fin grille bouche -->

    <div class="visleft">

    </div>
      <div class="nose position"></div>
  </div>

  <div class="col-xs-2 mouthright position">
    <div class="container-fluid"> <!-- début grille bouche -->
      <div class="row">
        <div class="col-xs-1 col-offset-1"></div>
        <div class="col-xs-1 col-offset-1 darth3"></div>
        <div class="col-xs-1 col-offset-1"></div>
        <div class="col-xs-1 col-offset-1 darth3"></div>
      </div>

    </div><!-- fin grille bouche -->
    <div class="visright">

    </div>
  </div>
  <div class="col-xs-1 darth1"></div>
  <div class="col-xs-1 darth1 trianright"></div>
</div>
<div class="row">
<div class="background"></div>
</div>

  </body>
</html>

              
            
!

CSS

              
                .container{
  background-color: #500;
}

.darth{
background-color: #000;
height:70px;
}

.darth1{
background-color: #000;
height:200px;
}

.darth3{
width: 2px;
height:200px;
background-color: #000;
}

.darth4{
  background-color: #000;
  height:40px;
}

.helmet{
border-left: #333 solid 3px;
border-right: #333 solid 3px;
}

.front{
  position: absolute;
  left:45px;
  bottom:-16px;
  width: 100px;
  height: 30px;
  background-color: #000;
  border-radius: 100%;
  box-shadow: 0px 4px 4px #333,0px 6px 6px #222;
  z-index: 100;
}

.trianleft{
background: -webkit-linear-gradient(top left, #500 50%, #000 50%);
background: -o-linear-gradient(top left, #500 50%, #000 50%);
background: linear-gradient(to bottom right, #500 50%, #000 50%);
}

.trianright{
background: -webkit-linear-gradient(bottom left, #500 50%, #000);
background: -o-linear-gradient(bottom left, #500 50%, #000 50%);
background: linear-gradient(to bottom left, #500 50%, #000 50%);
}

.position{
  position:relative;
}

.eyeleft{
  position:absolute;
left:50px;
  width: 110px;
  height: 90px;
  border-radius: 50px 35px 35px 45px;
  border: solid #333 2px;
  box-shadow:
  -4px -4px 2px #111,
  -4px -4px 4px #222,
  -4px -4px 6px #333,
  -4px -4px 8px #444,
  -4px -4px 10px #000;
  z-index:200;
}

.eyeright{
  position:absolute;
right:50px;
  width: 110px;
  height: 90px;
  border-radius: 35px 50px 45px 35px;
  border: solid #333 2px;
  box-shadow:
  4px -4px 2px #111,
  4px -4px 4px #222,
  4px -2px 6px #333,
  4px -2px 8px #444,
  4px -2px 10px #000;
  z-index:200;
}

.nose{
  width: 50px;
  height: 50px;
  top:-250px;
  left:155px;
  border-radius: 100%;
  background-color: #444;
  box-shadow: 3px 3px 6px #000;
  z-index:200;
}

.mouthleft{

  height:200px;
  width: 200px;
background: -webkit-linear-gradient(top left, #666, #000 60%);
background: -o-linear-gradient(top left, #666 , #000 60%);
background: linear-gradient(to top left, #666 , #000 60%);
border-bottom: 20px solid #000;
border-right: solid #000 20px;
}

.mouthright{
  height:200px;
  width: 200px;
background: -webkit-linear-gradient(top right, #666, #000 60%);
background: -o-linear-gradient(top right, #666, #000 60%);
background: linear-gradient(to top right, #666 , #000 60%);
border-bottom: 20px solid #000;
border-left: solid #000 20px;
}

.visleft{
  width: 40px;
  height: 40px;
  position: absolute;
  left: -20px;
  bottom: 2px;
  border-radius: 100%;
  background-color: #444;
  box-shadow: 3px 3px 6px #000;
  z-index:100;
}

.visright{
  width: 40px;
  height: 40px;
  position: absolute;
  right: -10px;
  bottom: 2px;
  border-radius: 100%;
  background-color: #444;
  z-index:100;
}

.neck{
  box-shadow:
  2px 0px 2px #222,
  4px 0px 4px #444,
  6px 0px 6px #666;
  border-top: solid 2px #555;
}

.background{
  background-color: #500;
  height: 100px;
}

              
            
!

JS

              
                
              
            
!
999px

Console