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

              
                <!DOCTYPE html>
<html>

<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<!-- Site Properties -->
<title>button</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.js"></script>
<style>
 .button {margin-top: 0.25em!important;}
</style>
</head>
  
<body>
<div class="ui equal width center aligned padded grid">
    <div class="ui center aligned" style="margin-top:4em;line-height: 15px;">
        <button class="ui red button">Red</button>
        <button class="ui orange button">Orange</button>
        <button class="ui yellow button">Yellow</button>
        <button class="ui olive button">Olive</button>
        <button class="ui green button">Green</button>
        <button class="ui teal button">Teal</button>
        <button class="ui blue button">Blue</button>
        <button class="ui violet button">Violet</button>
        <button class="ui purple button">Purple</button>
        <button class="ui pink button">Pink</button>
        <button class="ui brown button">Brown</button>
        <button class="ui grey button">Grey</button>
        <button class="ui black button">Black</button>  
    </div>
  
    <div class="ui center aligned" style="margin-top:1em;">
        <button class="ui red inverted button">Red</button>
        <button class="ui orange inverted button">Orange</button>
        <button class="ui yellow inverted button">Yellow</button>
        <button class="ui olive inverted button">Olive</button>
        <button class="ui green inverted button">Green</button>
        <button class="ui teal inverted button">Teal</button>
        <button class="ui blue inverted button">Blue</button>
        <button class="ui violet inverted button">Violet</button>
        <button class="ui purple inverted button">Purple</button>
        <button class="ui pink inverted button">Pink</button>
        <button class="ui brown inverted button">Brown</button>
        <button class="ui grey inverted button">Grey</button>
        <button class="ui black inverted button">Black</button>  
    </div>
  
    <div class="ui center aligned" style="margin-top:1em;">
        <button class="ui red basic button">Red</button>
        <button class="ui orange basic button">Orange</button>
        <button class="ui yellow basic button">Yellow</button>
        <button class="ui olive basic button">Olive</button>
        <button class="ui green basic button">Green</button>
        <button class="ui teal basic button">Teal</button>
        <button class="ui blue basic button">Blue</button>
        <button class="ui violet basic button">Violet</button>
        <button class="ui purple basic button">Purple</button>
        <button class="ui pink basic button">Pink</button>
        <button class="ui brown basic button">Brown</button>
        <button class="ui grey basic button">Grey</button>
        <button class="ui black basic button">Black</button>  
    </div>
</div>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console