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

              
                <body>
  
      <header class="masthead">
        <div class="wrapper h-group">
            <div class="f-padinfull f-all m-all">
                <div class="f1-f6 t1-t3 m-all">
                    <nav class="l-col_16">
                        <ul class="m-sm_nav_pod">
                            <li><a href="http://link.com/">link.com</a></li>
                            <li><a href="http://link.com">link.com</a></li>
                        </ul>
                    </nav>
                    <a class="logo" href="http://link.com" title="XXX Forums">XXX Forums</a>
                </div><!-- left side of masthead -->
                <div class="masthead-right f7-f12 t4-t6 m-all">

                    <div class="masthead-login m-login_box h-group">
                        <div class="masthead-title"><strong>Login</strong> Don't have an account? <a href="http://login.com">Create one</a></div>
                            <form class="m-login_block" method="post" action="login">
                                <input type="hidden" name="service" value="login" />
                                <input type="hidden" name="discussPlace" value="[[+discuss.place]]" />
                                <div class="f7-f8">
                                    <p>
                                        <input type="text" name="username" id="login-username">
                                        <label class="l-inline" for="login-username">username</label>
                                    </p>
                                </div>
                                <div class="f9-f10">
                                    <p>
                                        <input type="password" name="password" id="login-password">
                                        <label class="l-inline" for="login-password">password</label>
                                    </p>
                                </div>
                                <div class="f11-f12">
                                    <input class="alt-1-cta" type="submit" value="Login">
                                </div>
                                <div class="group-vis f7-f10 m-login_block_uts">
                                    <div class="f7-f8">
                                        <a href="http://login.com">Forgot Login?</a>
                                    </div>
                  
                                        </label>
                                    </div>
                                </div>
                            </form>
                    </div>

                </div>
            </div>
        </div>
    </header>
  
  
  
  
  
  
  
  
  
</body>
              
            
!

CSS

              
                // Theme Settings
// PIXELS TO REMS WITH FALLBACK
// https://github.com/bitmanic/rem

$baseline-px: 10px
=rem($property, $px-values)
    $baseline-rem: $baseline-px / 1rem
    #{$property}: $px-values
    @if type-of($px-values) == "number"
        #{$property}: $px-values / $baseline-rem
    @else
        $rem-values: unquote("")
        @each $value in $px-values
            @if $value == 0
                $rem-values: append($rem-values, $value)
            @else
                $rem-values: append($rem-values, $value / $baseline-rem)
        #{$property}: $rem-values

// RADIUS ON ROUNDED CORNER
$radius-sm: 3px

// RESET https://meyerweb.com/eric/tools/css/reset/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video
    margin: 0
    padding: 0
    border: 0
    outline: 0
    font-size: 100%
    font: inherit
    vertical-align: baseline

// HTML5 display-role reset for older browsers
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section
    display: block

body
    line-height: 1

ol, ul
    list-style: none

blockquote, q
    quotes: none

blockquote:before, blockquote:after
q:before, q:after
    content: ''
    content: none
ins
    text-decoration: none
del
    text-decoration: line-through

table
    border-collapse: collapse
    border-spacing: 0

// TYPOGRAPHY
html
    font-size: 62.5%

body
    font-family: sans-serif
    +rem('font-size', 13px)
    line-height: 1.4

h1
    font-size: 2em
    +rem('font-size', 27px)
    font-weight: bold
    color: #183030
h2
    +rem('font-size', 22px)
h3
    +rem('font-size', 19px)
h4
    +rem('font-size', 16px)

b, strong
    font-weight: bold
em, i
    font-style: italic
a
    color: saturate(lighten(red, 10%), 10%)
    text-decoration: none
    &:hover
        color: #000
        text-decoration: underline
pre
    font-family: "Courier New", Courier, mono

// This is where the masthead begins
.masthead
    background-color: #000
    color: #fff
    a
        color: #f6f6f6
    & > div
        +rem('padding', 0 0 17px 0)
    .m-sm_nav_pod
        +rem('padding', 4px 0)
        +rem('margin', 0 0 14px 0)

    .m-login_box
        +rem('padding', 8px 0 2px 17px)
        .masthead-title
            +rem('margin-bottom', 10px)
            color: green
            strong
                color: #fff
                opacity: .99
                font-weight: 500
                font-size: 1.2em
                margin: 0 .2em 0 0
        .m-login_block_uts
            +rem('padding', 5px 0 0 0)
            input
                margin: 2px 10px 0 0
            input, label, a
                display: inline-block
                vertical-align: top
                line-height: 1
                color: desaturate(#f6f6f6, 10%)
        form p
            position: relative
        label.l-inline
            opactiy: .6
            position: absolute
            top: 4px
            left: 4px
            &.infield
                padding: 7px 0 0 7px
    label
        font-family: georgia, times, serif
        font-style: italic
        color: desaturate(#f6f6f6, 10%)
    input
        color: white
        +rem('margin', 5px 5px 5px 0)
        outline: none
    input
        color: #fff !important
        font-weight: 500
        border-color: darken(#f6f6f6, 25%)

    input[type="text"], input[type="password"]
        background-color: darken(#f6f6f6, 5%)
        border: solid 1px darken(#f6f6f6, 25%)

        &:focus
            color: darken(#f6f6f6, 80%)
            background-color: lighten(#f6f6f6, 90%)
            border: solid 1px lighten(#f6f6f6, 24%)

              
            
!

JS

              
                
              
            
!
999px

Console