Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Demonstrating a pure CSS 'modal' dialog with the details element">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Demonstrating a pure CSS "modal"
    dialog with the details element</title>
</head>
<body>
  <details>
    <summary title="help">?</summary>
    <p>Here is a bunch of text which would be
      our help, or whatever else you want in this
      sort of “popover” dialog thing.</p>
    <p>Rather nicely, it doesn't require any JS at
      all, which is neat.</p>
  </details>
  <h1>Demonstrating a pure CSS
    “modal” dialog with the details element</h1>
  <p class="lorem">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit. Quibusdam debitis ea necessitatibus,
    veritatis ipsa, doloremque id eum officiis mollitia, 
    soluta tempora est, odio nostrum. Ut voluptate
    reprehenderit eum impedit, accusamus?</p>
  <p>The little question mark button top right ought
    to show a sort of “help” modal.</p>
  <p>Is this woefully terrible for accessibility,
    I wonder? It might be.</p>
  <p class="lorem">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit. Quibusdam debitis ea necessitatibus,
    veritatis ipsa, doloremque id eum officiis mollitia, 
    soluta tempora est, odio nostrum. Ut voluptate
    reprehenderit eum impedit, accusamus?</p>
  <p class="lorem">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit. Quibusdam debitis ea necessitatibus,
    veritatis ipsa, doloremque id eum officiis mollitia, 
    soluta tempora est, odio nostrum. Ut voluptate
    reprehenderit eum impedit, accusamus?</p>
  <p class="lorem">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit. Quibusdam debitis ea necessitatibus,
    veritatis ipsa, doloremque id eum officiis mollitia, 
    soluta tempora est, odio nostrum. Ut voluptate
    reprehenderit eum impedit, accusamus?</p>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
silpro
0viewers