cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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 lang="he">

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

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

  <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>
    </menu>
    <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>
    </menu>
</body>

</html>
            
          
!
            
              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('תוכן הבלוק צוייץ בטוויטר! (לא באמת)');
  else
    alert('תוכן הבלוק שותף ב' + platform + '!(לא באמת)');
}

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

function print() {
  alert('מדפיס את תוכן העמוד.. (עדיין לא באמת)');
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console