Skip to content

Instantly share code, notes, and snippets.

@bigdawggi
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigdawggi/6f4f2ba1bf5329849eac to your computer and use it in GitHub Desktop.
Save bigdawggi/6f4f2ba1bf5329849eac to your computer and use it in GitHub Desktop.
Code structure for displaying inline contents in lightbox
<!-- REQUIREMENTS:
A link with
- a rel of "lightbox"
- an href that points to the the ID of the target div
- a data-lightbox-type="inline" attribute
-->
<a href="#popup-links" rel="lightbox" data-lightbox-type="inline">Load Inline HTML</a>
<!-- A div with a class of "hide", and an ID that matches the href of the originating link -->
<div id="popup-links" class="hide">
<h3>Please choose which site to log into</h3>
<a class="btn btn-primary" href="http://google.com/site1">Site 1</a>
<a class="btn btn-primary" href="http://google.com/site2">Site 2</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment