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. 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

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

              
                <!-- 
Source: http://cssdeck.com/labs/apple-keyboard-via-css3
Author: Dustin Cartwright - https://twitter.com/noxxten-->
<div id="keyboard">
  <ul class="cf">
    <li><a href="#" class="key c27 fn"><span id="esc">esc</span></a></li>
    <li><a href="#" class="key c112 fn"><span>F1</span></a></li>
    <li><a href="#" class="key c113 fn"><span>F2</span></a></li>
    <li><a href="#" class="key c114 fn"><span>F3</span></a></li>
    <li><a href="#" class="key c115 fn"><span>F4</span></a></li>
    <li><a href="#" class="key c116 fn"><span>F5</span></a></li>
    <li><a href="#" class="key c117 fn"><span>F6</span></a></li>
    <li><a href="#" class="key c118 fn"><span>F7</span></a></li>
    <li><a href="#" class="key c119 fn"><span>F8</span></a></li>
    <li><a href="#" class="key c120 fn"><span>F9</span></a></li>
    <li><a href="#" class="key c121 fn"><span>F10</span></a></li>
    <li><a href="#" class="key c122 fn"><span>F11</span></a></li>
    <li><a href="#" class="key c123 fn"><span>F12</span></a></li>
    <li><a href="#" class="key fn"><span>Del</span></a></li>
  </ul>
  <ul class="cf" id="numbers">
    <li><a href="#" class="key c192"><b>~</b><span>`</span></a></li>
    <li><a href="#" class="key c49"><b>!</b><span>1/૧</span></a></li>
    <li><a href="#" class="key c50"><b>@</b><span>2/૨</span></a></li>
    <li><a href="#" class="key c51"><b>#</b><span>3/૩</span></a></li>
    <li><a href="#" class="key c52"><b>$</b><span>4/૪</span></a></li>
    <li><a href="#" class="key c53"><b>%</b><span>5/૫</span></a></li>
    <li><a href="#" class="key c54"><b>^</b><span>6/૬</span></a></li>
    <li><a href="#" class="key c55"><b>&amp;</b><span>7/૭</span></a></li>
    <li><a href="#" class="key c56"><b>*</b><span>8/૮</span></a></li>
    <li><a href="#" class="key c57"><b>(</b><span>9/૯</span></a></li>
    <li><a href="#" class="key c48"><b>)</b><span>0/૦</span></a></li>
    <li><a href="#" class="key c189 alt"><b>_</b><span>-</span></a></li>
    <li><a href="#" class="key c187"><b>+</b><span>=</span></a></li>
    <li><a href="#" class="key c46" id="delete"><span>Backspace</span></a></li>
  </ul>
  <ul class="cf" id="qwerty">
    <li><a href="#" class="key c9" id="tab"><span>tab</span></a></li>
    <li><a href="#" class="key c81"><span><div class="topleft">થ</div><div class="bottomright">q</div><div class="bottomleft">ત</div></span></a></li>
    <li><a href="#" class="key c87"><span><div class="topleft">ઙ</div><div class="bottomright">w</div><div class="bottomleft">ઞ</div></span></a></li>
    <li><a href="#" class="key c69"><span><div class="topleft"> </div><div class="bottomright">e</div><div class="bottomleft">એ</div></span></a></li>
    <li><a href="#" class="key c82"><span><div class="topleft">ઋ</div><div class="bottomright">r</div><div class="bottomleft">ર</div></span></a></li>
    <li><a href="#" class="key c84"><span><div class="topleft">ઠ</div><div class="bottomright">t</div><div class="bottomleft">ટ</div></span></a></li>
    <li><a href="#" class="key c89"><span><div class="topleft">ઐ</div><div class="bottomright">y</div><div class="bottomleft">ય</div></span></a></li>
    <li><a href="#" class="key c85"><span><div class="topleft">ઊ</div><div class="bottomright">u</div><div class="bottomleft">ઉ</div></span></a></li>
    <li><a href="#" class="key c73"><span><div class="topleft">ઈ</div><div class="bottomright">i</div><div class="bottomleft">ઇ</div></span></a></li>
    <li><a href="#" class="key c79"><span><div class="topleft"> </div><div class="bottomright">o</div><div class="bottomleft">ઓ</div></span></a></li>
    <li><a href="#" class="key c80"><span><div class="topleft">ફ</div><div class="bottomright">p</div><div class ="bottomleft">પ</div></span></a></li>
<li><a href="#" class="key c219"><span><div class="topleft">ધ</div><div class="bottomright">[</div><div class="bottomleft">દ</div></span></a></li>
    <li><span><a href="#" class="key c221 alt"><b>}</b><span>]</span></span></a></li>
    <li><a href="#" class="key c220 alt"><b>|</b><span>\</span></a></li>
  </ul>
  <ul class="cf" id="asdfg">
    <li><a href="#" class="key c20 alt" id="caps"><b></b><span>caps lock</span></a></li>
    <li><a href="#" class="key c65"><span><div class="topleft">આ</div><div class="bottomright">a</div><div class="bottomleft">અ</div></span></a></li>
    <li><a href="#" class="key c83"><span><div class="topleft">ઁ</div><div class="bottomright">s</div><div class="bottomleft">સ</div></span></a></li>
    <li><a href="#" class="key c68"><span><div class="topleft">ઢ</div><div class="bottomright">d</div><div class="bottomleft">ડ</div></span></a></li>
    <li><a href="#" class="key c70"><span><div class="topleft"> </div><div class="bottomright">f</div><div class="bottomleft"> </div></span></a></li>
    <li><a href="#" class="key c71"><span><div class="topleft">ઘ</div><div class="bottomright">g</div><div class="bottomleft">ગ</div></span></a></li>
    <li><a href="#" class="key c72"><span><div class="topleft">ઃ</div><div class="bottomright">h</div><div class="bottomleft">હ</div></span></a></li>
    <li><a href="#" class="key c74"><span><div class="topleft">ઝ</div><div class="bottomright">j</div><div class="bottomleft">જ</div></span></a></li>
    <li><a href="#" class="key c75"><span><div class="topleft">ખ</div><div class="bottomright">k</div><div class="bottomleft">ક</div></span></a></li>
    <li><a href="#" class="key c76"><span><div class="topleft">ળ</div><div class="bottomright">l</div><div class="bottomleft">લ</div></span></a></li>
    <li><a href="#" class="key c186 alt"><b>:</b><span>;</span></a></li>
    <li><a href="#" class="key c222 alt"><b>"</b><span>'</span></a></li>
    <li><a href="#" class="key c13 alt" id="enter"><span>Enter</span></a></li>
  </ul>
  <ul class="cf" id="zxcvb">
    <li><a href="#" class="key c16 shiftleft"><span>Shift</span></a></li>
    <li><a href="#" class="key c90"><span><div class="topleft">ષ</div><div class="bottomright">z</div><div class="bottomleft">શ</div></span></a></li>
    <li><a href="#" class="key c88"><span><div class="topleft"> </div><div class="bottomright">x</div><div class="bottomleft">્</div></span></a></li>
    <li><a href="#" class="key c67"><span><div class="topleft">છ</div><div class="bottomright">c</div><div class="bottomleft">ચ</div></span></a></li>
    <li><a href="#" class="key c86"><span><div class="topleft">ઔ</div><div class="bottomright">v</div><div class="bottomleft">વ</div></span></a></li>
    <li><a href="#" class="key c66"><span><div class="topleft">ભ</div><div class="bottomright">b</div><div class="bottomleft">બ</div></span></a></li>
    <li><a href="#" class="key c78"><span><div class="topleft">ણ</div><div class="bottomright">n</div><div class="bottomleft">ન</div></span></a></li>
    <li><a href="#" class="key c77"><span><div class="topleft">ં</div><div class="bottomright">m</div><div class="bottomleft">મ</div></span></a></li>
    <li><a href="#" class="key c188 alt"><b>&lt;</b><span>,</span></a></li>
    <li><a href="#" class="key c190 alt"><b>&gt;</b><span>.</span></a></li>
    <li><a href="#" class="key c191 alt"><b>?</b><span>/</span></a></li>
    <li><a href="#" class="key c16 shiftright"><span>Shift</span></a></li>
  </ul>
  <ul class="cf" id="bottomrow">
    <li><a href="#" class="key c17" id="control"><span>control</span></a></li>
    <li><a href="#" class="key" id="fn"><span>fn</span></a></li>
    <li><a href="#" class="key option" id="optionleft"><span>win</span></a></li>
    <li><a href="#" class="key command" id="commandleft"><span>alt</span></a></li>
    <li><a href="#" class="key c32" id="spacebar"><div class="center">Gujarathi Keyboard</div></a></li>
    <li><a href="#" class="key command" id="commandright"><span>alt</span></a></li>
    <li><a href="#" class="key option" id="optionright"><span>control</span></a></li>
    <ol class="cf">
      <li><a href="#" class="key c37" id="left"><span></span></a></li>
      <li>
        <a href="#" class="key c38" id="up"><span></span></a>
        <a href="#" class="key c40" id="down"><span></span></a>
      </li>
      <li><a href="#" class="key c39" id="right"><span></span></a></li>
    </ol>
  </ul>
</div>

              
            
!

CSS

              
                /* Rachana */
@font-face {
  font-family: "Rachana";
  font-style: normal;
  font-weight: 400;
  src: url(https://smc.org.in/downloads/fonts/rachana/Rachana-Regular.woff2?v=7.0)
      format("woff2"),
    url(https://smc.org.in/downloads/fonts/rachana/Rachana-Regular.woff?v=7.0)
      format("woff"),
    url(https://smc.org.in/downloads/fonts/rachana/Rachana-Regular.ttf?v=7.0)
      format("truetype");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02c6, U+02da, U+02dc,
    U+0d01-0d7f, U+200c-U+200d, U+25cc;
}

body {background: #fff;}

#keyboard {
	margin: 15px auto 0;
	width: 794px;
	height: 315px;
	background:	#d5d9dc  url('keyboard-background.jpg') repeat-x;
	-moz-border-radius-topleft: 7px 21px;
	-moz-border-radius-topright: 7px 21px;
	-moz-border-radius-bottomright: 10px;
	-moz-border-radius-bottomleft: 10px;
	border-top-left-radius: 7px 21px;
	border-top-right-radius: 7px 21px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	padding: 50px 0 0 10px;
	-webkit-box-shadow:  
		inset 0 0 8px #bbb,
		0 1px 0 #aaa,
		0 4px 0 #bbb,
		0 10px 30px #ddd;
	-moz-box-shadow:  
		inset 0 0 8px #bbb,
		0 1px 0 #aaa,
		0 4px 0 #bbb,
		0 10px 30px #ddd;
	box-shadow:  
		inset 0 0 8px #bbb,
		0 1px 0 #aaa,
		0 4px 0 #bbb,
		0 10px 30px #ddd;}

#keyboard > ul {list-style-type: none; width: 784px; margin: 0 auto;}
li {float: left;}

.topright{
    position: relative;
    bottom: 13px;
    left: 13px;
    font-size: 100%;
}

.topleft{
    position: relative;
    top: -12px;
    left: -10px;  
    font-family: "Rachana";
    font-size: 100%;
    color: #777;
}
.center{
  position: relative;
  top: 20px;
  font-family: "Rachana";
}

.bottomleft{
    position: relative;
    bottom: 24px;
    left: -10px;  
    font-family: "Rachana";
    font-size: 100%;
    color: #777;
}

.bottomright{
    position: relative;
    bottom: 9px;
    left: 13px;
    font-size: 100%;
}

.key{
	display: block;
	color: #aaa;
	font: bold 9pt arial;
	text-decoration: none;
	text-align: center;
	width: 44px;
	height: 41px;
	margin: 5px;
	background: #eff0f2;
	-moz-border-radius: 4px;
	border-radius: 4px;
	border-top: 1px solid #f5f5f5;
	-webkit-box-shadow: 
		inset 0 0 25px #e8e8e8,
		0 1px 0 #c3c3c3,
		0 2px 0 #c9c9c9,
		0 2px 3px #333;
	-moz-box-shadow: 
		inset 0 0 25px #e8e8e8,
		0 1px 0 #c3c3c3,
		0 2px 0 #c9c9c9,
		0 2px 3px #333;
	box-shadow: 
		inset 0 0 25px #e8e8e8,
		0 1px 0 #c3c3c3,
		0 2px 0 #c9c9c9,
		0 2px 3px #333;
	text-shadow: 0px 1px 0px #f5f5f5;}

.key:active, .keydown {
	color: #888;
	background: #ebeced;
	margin: 7px 5px 3px;
	-webkit-box-shadow:
		inset 0 0 25px #ddd,
		0 0 3px #333;
	-moz-box-shadow: 
		inset 0 0 25px #ddd,
		0 0 3px #333;
	box-shadow: 
		inset 0 0 25px #ddd,
		0 0 3px #333;
	border-top: 1px solid #eee;}
	
.fn span {
	display: block;
	margin: 14px 5px 0 0;
	text-align: right;
	font: bold 6pt arial;
	text-transform: uppercase;}
#esc {
	margin: 6px 15px 0 0;
	font-size: 7.5pt;
	text-transform: lowercase;}


#numbers li a span {
	display: block;}
	
#numbers li a b {
	margin: 3px 0 3px;
	display: block;}

#numbers li .alt b {display: block;margin: 0 0 3px;}

#numbers li #delete span {
	text-align: right;
	margin: 23px 10px 0 0;
	font-size: 7.5pt;
	text-transform: lowercase;}
	
#qwerty li a span {
	display: block;
	margin: 13px 0 0;
	text-transform: uppercase;}
	
#qwerty li #tab span {
	text-align: left;
	margin: 23px 0 0 10px;
	font-size: 7.5pt;
	text-transform: lowercase;}	

#qwerty li .alt b {display: block; margin: 3px 0 0;}
#qwerty li .alt span {margin: 2px 0 0;}


#asdfg li a span {
	display: block;
	margin: 13px 0 0;
	text-transform: uppercase;}

#asdfg li .alt span {margin: 0; text-transform: lowercase;}
#asdfg li .alt b {display: block; margin: 3px 0 0;}
#asdfg li #caps b {
	display: block;
	background: #999;
	width: 4px;
	height: 4px;
	border-radius: 10px;
	margin: 9px 0 0 10px;
	-webkit-box-shadow: inset 0 1px 0 #666;
	-moz-box-shadow:inset 0 1px 0 #666;
	box-shadow:inset 0 1px 0 #666;}
#asdfg li #caps span {
	text-align: left;
	margin: 10px 0 0 10px;
	font-size: 7.5pt;}
#asdfg li #enter span {
	text-align: right;
	margin: 23px 10px 0 0;
	font-size: 7.5pt;}


#zxcvb li a span {
	display: block;
	margin: 13px 0 0;
	text-transform: uppercase;}
#zxcvb li .shiftleft span {
	text-align: left;
	margin: 23px 0 0 10px;
	font-size: 7.5pt;
	text-transform: lowercase;}
#zxcvb li .shiftright span {
	text-align: right;
	margin: 23px 10px 0 0;
	font-size: 7.5pt;
	text-transform: lowercase;}
#zxcvb li .alt b {display: block;margin: 4px 0 0;}
#zxcvb li .alt span {margin: 0;}

	
#bottomrow li #fn span, #bottomrow li #control span, #bottomrow li #optionleft span, #bottomrow li #commandleft span {
	display: block;
	text-align: left;
	margin: 31px 0 0 8px;
	font-size: 7.5pt;
	text-transform: lowercase;}

#bottomrow li #optionright span, #bottomrow li #commandright span {
	display: block;
	text-align: right;
	margin: 31px 8px 0 0;
	font-size: 7.5pt;
	text-transform: lowercase;}

#bottomrow ol li #left span, #bottomrow ol li #right span, #bottomrow ol li #up span, #bottomrow ol li #down span {
	display: block;
	margin: 9px 0 0;}

.fn {height: 26px; width: 46px;}
#delete {width: 72px;}
#tab {width: 72px;}
#caps {width: 85px;}
#enter {width: 85px;}
.shiftleft, .shiftright {width: 112px;}
#fn, #control, .option, .command, #spacebar {height: 49px;}

#control {width: 56px;}
.option {width: 46px;}
.command {width: 67px;}
#spacebar {width: 226px;}

#left img, #up img, #down img, #right img {border: none;}
ul ol {list-style-type: none;}
#down {height: 23px;}
#up, #left, #right {height: 24px;}
#left, #right {margin: 30px 5px 5px;}
#left:active, #right:active {margin: 32px 5px 3px;}
#up {margin: 5px 5px 1px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;}
#up:active {margin: 8px 5px -2px;}
#down {margin: 0 5px 5px; border-top-left-radius: 0px; border-top-right-radius: 0px;}
#down:Active {margin: 3px 5px 4px;}
#main {
	width: 700px;
	padding: 20px 50px;
	margin: 0 auto 50px;
	background: #fff;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px #aaa;}
		
h1 {
	color: #888;
	text-align: center;
	font: bold 25pt/25pt arial;
	margin: 30px 0 60px;}
	
h2 {
	color: #666;
	font: 13pt/0pt arial;}
	
p {
	color: #999;
	font: 9pt/17pt arial;
	margin: 0 0 50px;}
	
small {
	font: italic 8pt/12pt arial;
	color: #aaa;
	padding: 0 130px 0 0;
	display: block;}
	
cite {
	display: block;
	padding: 0 0 30px;
	margin: 0 auto;
	text-align: center;
	color: #999;
	font: italic bold 8pt arial;}

ul, ol {padding: 0px; margin: 0;}
	
/* Micro Clearfix by Nicolas Gallagher - http://nicolasgallagher.com/micro-clearfix-hack */
        /* For modern browsers */
        .cf:before, .cf:after {content:""; display:table;}
        .cf:after {clear:both;}

        /* For IE 6/7 (trigger hasLayout) */
        .cf {zoom:1;}
.message {
  color: #000;
  background-color: #000000;
}
              
            
!

JS

              
                
              
            
!
999px

Console