Skip to content

Instantly share code, notes, and snippets.

View EricRohlfs's full-sized avatar

Eric Rohlfs EricRohlfs

View GitHub Profile
@ilyaigpetrov
ilyaigpetrov / pure-css-bootstrap-modal.html
Last active August 11, 2023 12:43
Pure CSS Bootstap Modal, requires only bootstap.css, no JavaScript.
<label for="modal-switch" class="btn btn-default btn-primary" role="button" data-toggle="modal" data-target="#myModal">Launch demo modal</label>
<!-- Modal -->
<div class="pure-css-bootstrap-modal">
<style>
.pure-css-bootstrap-modal {
position: absolute; /* Don't take any space. */
}
.pure-css-bootstrap-modal label.close {
/* Reset */
padding: 0;