Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <DOCTYPE html>
<html>  
<body>
<div class="Intro">
  <img class="poster"    src="https://thequo.files.wordpress.com/2016/04/tesla.png?w=1000">
  <span>
    <h1 class="Title"><u>Tesla:
    <h2><u>Vehicles Reimagined</u>       </h2> 
    </h1>
  </span>
</div>

<div class="Tesla">
  <img class="Tesla-img-left" src= "http://images.hgmsites.net/lrg/2009-tesla-roadster_100179475_l.jpg" >     
  <h3 class="Tesla-text-right text-left-center" ><em><u>The Tesla Roadster</u></em>
  </h3>
  <p class="Tesla-text-right">The Tesla Roadster first came out in 2008. There was much hype surroudning it with many celebrities and affluent people trying their best to get their hands on one. In 2008, after a few years of trial and error, the roadster finnally went on sale.
  </p>
  <h4 class="Tesla-text-right"><u>Features:</u>
  </h4>
   <ul >
     <li>2008-2012</li>
     <li>Sports car</li>
     <li>2 doors</li>
     <li>Electric range: 244 miles</li>
     <li>0-60 in 3.7 seconds(sports model)</li> 
    
</div>
   
<div class="Tesla">
  <img class= "Tesla-img-right" src= "https://tctechcrunch2011.files.wordpress.com/2015/08/tesla_model_s.jpg" >
  <h3 class="Tesla-text-left text-right-center"> <u>Model S</u>
  </h3>
  <p class="Tesla-text-left">With the Modle S, Tesla gained acceptance and credence as a company that's here to stay. It came out in 2012 and reimagined and reshaped the electric car image.
  </p>
   <h4 class="Tesla-text-left">             <u>Features:</u></h4>
   <ul class="Tesla-text-left">
     <li>2012- Present</li>
     <li>Sedan type</li>
     <li>5 doors (with liftback)</li>
     <li>Electric range: 240-310 miles</li>
     <li>0-60 in 2.5 seconds(Ludicrous mode)</li>
     <li>Autopilot available with upgrade</li>
   </ul>
    
 </div>
     
 <div class="Tesla">
   <img class="Tesla-img-left" src= "http://insideevs.com/wp-content/uploads/2016/03/JL82798.jpg" >
   <h3 class="Tesla-text-right text-left-center"> <u>Model X</u>
   </h3>
   <p class="Tesla-text-right">After a delay in the shipping, Tesla began delivering the forst Model X's in the fourth quarter of 2015. It is rated as the safest car on the road by Car and Driver.
   </p>
   <h4 class="Tesla-text-right">           <u>Features:</u></h4>
    <ul>
        <li>2015- Present</li>
        <li>Crrossover SUV</li>
        <li>5 doors (falcon wing doors)  </li>
        <li>Electric range: 250-280 miles   </li>
        <li>0-60 in 2.9 seconds(P100 D)      </li>
        <li> Autopilot available with upgrade </li>
    </ul>
  
</div>
<div class="Tesla">
    <img class="Tesla-img-right" src= "https://cdn0.vox-cdn.com/thumbor/IzrcXzl98ymJO3DxIxSqvumecMk=/cdn0.vox-cdn.com/uploads/chorus_asset/file/6273023/model-3-unveil.0.jpg" >
   <h3 class="Tesla-text-left text-right-center"><u>Model 3</u>
   </h3>
   <p class="Tesla-text-left"> This model was revealed on March 31, 2016. The Model 3 might be Tesla's most important car because it is a mass market car. The demand for it is strong, over 400,000 people put down $1,000 to reserve their spot in line for deliverance of the car which is due late 2017. 
   </p>
   <h4 class="Tesla-text-left"><u>Features:</u>
   </h4>
   <ul class="Tesla-text-left">
      <li class="Tesla-text-left">$35,000 before government incentives
      </li>
      <li class="Tesla-text-left" >At least 215 mile range
      </li>
      <li class="Tesla-text-left">Continued glass from sunroof to trunk
      </li>
      <li class="Tesla-text-left">Front area moved up & hood compressed so that <br>it seats 5 regular sized humans comfortably           </li>
      <li class="Tesla-text-left">Autopilot hardware will be standard.
      </li>
   </ul>
</div>
<div class="link">
     <p>If you would like to learn more about Tesla you can find more information <a href="https://en.wikipedia.org/wiki/Tesla_Motors">here.
     </a>
 </div>
 

    </body>
  </html>

            
          
!
            
              * {
  box-sizing: border-box;
  margin:0px;
  padding:0px;
}

.Title{
  position: absolute;
  width: 25%;
  top: 120px;
  background-color: #776577;
  padding: 0px;
  opacity: 0.6;
  color: white;
 }

.poster{
    width: 100%;
    position: relative;
		background-size: cover;
    margin:0px;
}

img{
   width: 50%;
	 position: relative;
	 background-size: cover;
   top:0px;
   margin-top:0px; 
   padding:0px;
}

.Tesla{
   width: 100%;
   display: inline-block;
   position: relative;
   top: -.7px;
}

h3{
    text-align: center;
    position: relative;
}

ul{
  text-align: center;
}

li {
  list-style-position: inside;
  list-style-type: square;
  margin:10px;
}

.Tesla-img-left{
    border:7px solid #777;
    float: left;
   
}

.Tesla-text-right{
    text-align:center;
    position:relative;
 }

.text-left-center{
    position:relative;
    margin-left: 650px;
   
}

.text-right-center{
  position:relative;
  margin-left: 7px;
}

.Tesla-img-right{
  float: right;
  border:6px solid #777;
}

.Tesla-text-left{
   text-align: center;
   position:relative;
}
 
.link{
  width: 100%;
  display:block;
  text-align: center;
  background-color: #776577;
  height: 50px;
  color: white;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console