css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

              <html lang="he">

  <title>Mastering HTML 5.1!</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <section class="context-example">
    <button class="trigger" contextmenu="right-click-menu">
      לחץ עלי (עם הלחצן הימני!)

  <menu type="context" id="right-click-menu">
    <menu label="שיתוף ברשתות חברתיות">
      <menuitem type="action" label="צייץ בטוויטר" icon="ico_twitter.png" onclick="share('טוויטר')"></menuitem>
      <menuitem type="action" label="שתף בפייסבוק" icon="ico_facebook.png" onclick="share('פייסבוק')"></menuitem>
      <menuitem type="action" label="שתף בגוגל +" icon="ico_google.png" onclick="share('גוגל +')"></menuitem>
    <menuitem type="action" label="שליחת תוכן הבלוק באימייל" icon="ico_email.png" onclick="email()"></menuitem>
    <menuitem type="action" label="הדפסת תוכן הבלוק" icon="ico_print.png" onclick="print()"></menuitem>
    <menuitem type="checkbox" label="סמן אותי!"></menuitem>
    <menu label="יישור טקסט">
      <menuitem type="radio" radiogroup="alignment" label="ישר טקסט לימין" checked></menuitem>
      <menuitem type="radio" radiogroup="alignment" label="ישר טקסט לשמאל"></menuitem>

              body, section, details, summary {
  -moz-box-sizing: border-box;
  box-sizing: border-box;

body {
  height: 100vh;
  padding: 30px;
  font-family: arial;
  direction: rtl;
  text-align: right;
   display: flex;
  justify-content: center;
  align-items: center;

.context-example .trigger {
  background: rgba(0, 173, 167, 0.4);
  width: auto;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #303030;
  font-weight: bold;
  cursor: pointer;
  border: 0;
  border-bottom: 3px solid rgba(0, 173, 167, 0.4);

.context-example .trigger:hover {
  border-bottom: 3px solid rgba(48, 48, 48, 0.5);

.context-example .trigger:focus {
  outline: none;
  border-bottom: 3px solid rgb(48, 48, 48);
              function share(platform) {
  if(platfrom == "טוויטר")
    alert('תוכן הבלוק צוייץ בטוויטר! (לא באמת)');
    alert('תוכן הבלוק שותף ב' + platform + '!(לא באמת)');

function email() {
  var address = prompt("הכנס כתובת אימייל");
  if(address != null)
    alert('תוכן הבלוק נשלח למייל');

function print() {
  alert('מדפיס את תוכן העמוד.. (עדיין לא באמת)');
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................