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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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 lang="ko">
    <meta charset="utf-8">
    <title>Gradient Background</title>
    <div id="bg">-webkit- -moz- linear</div>
    <div id="bg2">-webkit- radial</div>
    <div id="bg3">To Right</div>
    <div id="bg4">To Bottom</div>
    <div id="bg5">To Right + Top</div>
    <div id="bg6">To Right + Bottom</div>
    <div id="bg7">3 Color</div>
    <div id="bg8">Radial</div>
    <div id="bg9">Percents</div>
    <div id="bg10">Pixel</div>
    <div id="bg11">Radial (left top)</div>
    <div id="bg12">Radial (right top)</div>
    <div id="bg13">Radial (left bottom)</div>
    <div id="bg14">Radial (right bottom)</div>
    <div id="bg15">Radial (Custom)</div>
    <div id="bg16">Radial (Custom2)</div>


              @charset "utf-8";
@import url('');

* {
    margin: 0;
    padding: 0;

body {
    font: 17px 'Nanum Gothic', sans-serif;

div {
    float: left;
    width: 200px;
    height: 200px;
    margin: 10px;
    font-size: 20px;
    color: #fff;
    text-align: center;
    line-height: 200px;

#bg {
    background: -webkit-gradient(linear,left top,right bottom,color-stop(0,red),color-stop(1,blue));
    background: -moz-linear-gradient(left top,red,blue);

#bg2 {
    background: -webkit-gradient(radial,center center,30,center center,90,from(red),to(blue));

#bg3 {
    background: linear-gradient(to right,red,blue);

#bg4 {
    background: linear-gradient(to bottom,red,blue);

#bg5 {
    background: linear-gradient(to right top,red,blue);

#bg6 {
    background: linear-gradient(to right bottom,red,blue);

#bg7 {
    background: linear-gradient(to right,red,green,blue);

#bg8 {
    background: radial-gradient(red,green,blue);

#bg9 {
    background: linear-gradient(to right,red 10%,orange 20%,yellow 30%,green 40%,blue 50%,darkblue 60%,purple 70%,#00ebff 80%,#302841 90%);

#bg10 {
    background: linear-gradient(to bottom,red 30px,orange 60px,yellow 90px,green 120px,blue 150px,darkblue 180px,purple 210px,#00ebff 240px,#302841 270px);

#bg11 {
    background: radial-gradient(ellipse at 0% 0%, #f00, #00f, #0f0);

#bg12 {
    background: radial-gradient(ellipse at 100% 0%, #f00, #00f, #0f0);

#bg13 {
    background: radial-gradient(ellipse at 0% 100%, #f00, #00f, #0f0);

#bg14 {
    background: radial-gradient(ellipse at 100% 100%, #f00, #00f, #0f0);

#bg15 {
    background: radial-gradient(ellipse at 30% 70%, #f00, #00f, #0f0, #ff0, #f0f);

#bg16 {
    background: radial-gradient(ellipse at 50% 10%, #ff0 10%, #f00 15%, #ff6 20%, #ff1 50%, #00f);
    color: black;