cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <p>This is a simple SVG.  Here is what each part of it means:
  <ul>
    <li>The <code>line</code> element is a line.</li>  
    <li>The <code>style</code> tag tells us that the line will be solid and green.</li>  
    <li><code>x1="0"</code> is the x-coordinate of the starting point.  This means that the line will start at the left of the SVG.</li>  
    <li><code>y1="10"</code> is the y-coordinate of the starting point: the line will start 10px from the top of the SVG.</li>
    <li><code>x2="0"</code> is the x-coordinate of the ending point: the line will end at the left of the SVG.</li>
    <li><code>y2="100"</code> is the y-coordinate of the ending point: the line will end 100 pixels from the top of the SVG.
    </ul>
</p>
<svg xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">

    <line x1="0" y1="10" x2="0"   y2="100" style="stroke:#006600;"/>

</svg>

<p>We can easily change the shape and size of the line by changing these parameters.</p>

<p>Change the color and thickness of the line:</p>

<svg xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">

    <line x1="0" y1="10" x2="0"   y2="100" style="stroke:#540CA0;" stroke-width="10px">

</svg>
  
<p>Change the ending coordinates:</p>

<svg xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">

    <line x1="0"  y1="10" x2="100"   y2="50" style="stroke:#540CA0;" stroke-width="10px">

</svg>


            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
  background: #f4f4f4;
  font-family: 'Open Sans', sans-serif;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console