🌐
CodePen
codepen.io › imprakash › pen › GgNMXO
Pure css popup box
HTML CSS JS Result · HTML Options · Format HTML · View Compiled HTML · Analyze HTML · Maximize HTML Editor · Minimize HTML Editor · Fold All · Unfold All · <h1>Popup/Modal Windows without JavaScript</h1> <div class="box"> <a class="button" href="#popup1">Let me Pop up</a> </div> <div id="popup1" class="overlay"> <div class="popup"> <h2>Here i am</h2> <a class="close" href="#">&times;</a> <div class="content"> Thank to pop me out of that button, but now i'm done so you can close this window.
🌐
CodePen
codepen.io › pure-css › pen › qddOQK
Pure-CSS Modal Popup
<!--End of Wrap --> <div class="wrap"> <h1>Pure <span>CSS</span> Modal Popup</h1> </div> <!--End of Wrap --> <!--Start of Modal --> <div class="modal"> <input id="modal__trigger" type="checkbox" /> <label for="modal__trigger">Launch Modal</label> <div class="modal__overlay"> <div class="modal__wrap"> <label for="modal__trigger">&#10006;</label> <h2>This is your modal content</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
🌐
CodePen
codepen.io › Idered › pen › DdeoeW
Pure CSS modal box
<h1>Pure CSS modal box</h1> <div> <p>You can place trigger button wherever you want.</p> <p> <label class="btn" for="modal-1">Show me modal with a cat</label> <label class="btn btn--blue" for="modal-2">Click for more AWW</label> </p> </div> <input class="modal-state" id="modal-1" type="checkbox" /> <div class="modal"> <label class="modal__bg" for="modal-1"></label> <div class="modal__inner"> <label class="modal__close" for="modal-1"></label> <h2>Caaaats FTW!</h2> <p><img src="https://i.imgur.com/HnrkBwB.gif" alt="" />Aliquam in sagittis nulla.
🌐
CodePen
codepen.io › ohnoitsaustin › pen › zGmJjz
Pure CSS modal
<section class="center"> <div class="center__inner"> <div class="content"> <label class="button" for="modal__state"><i class="fa fa-rocket"></i> Launch it!</label> <input type="checkbox" name="modal__state" id="modal__state" class="modal__state"> <div class="modal__overlay"> <label for="modal__state" class="modal__overlay-close"></label> <div class="modal"> <label class="button button--close modal__close" for="modal__state"><i class="fa fa-times"></i></label> <h1>Here is the modal!</h2> <p class="lede">Created with pure CSS, and probably non-functional in many browsers.</p> <p>The <span class="button button--inline">launch</span> button is a <span class="code">&lt;label&gt;</span> attached to a radio <span class="code">&lt;input&gt;</span>. Clicking the label toggles the radio input.
🌐
CodePen
codepen.io › carolinerusso › pen › zrygEb
Pure CSS responsive popup modal
I work because my <b>for</b> matches my buddy's <b>id</b>. My buddy's name is <b>checkbox</b>. And as long as my buddy is right before <b>.modal</b>, everything works and everyone is happy.</p> <input type="checkbox" id="3" /> <div class="modal"> <div class="modal__inner"> <p>Born 'n bred CSS.
🌐
CodePen
codepen.io › istef › pen › XQKmba
Pure CSS Modal On Page Load
January 20, 2020 - <!-- Modal --> <div class="modal" id="modal-one" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-header"> <h2>Modal in CSS?</h2> <a href="#modal-one" class="btn-close" aria-hidden="true">×</a> </div> <div class="modal-body"> <p>One modal example here!
🌐
CodePen
codepen.io › gabrieleromanato › pen › eBVRbq
Pure CSS modal dialog box
@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic); html,body { height: 100%; min-height: 100%; } body { margin: 0; padding: 0; font-family: 'Lato', sans-serif; } p { text-align: center; margin: 2em 0; } button { border: none; cursor: pointer; font-family: 'Lato', sans-serif; } button:focus { outline-style: none; } .btn { background: #d30000; color: #fff; font-size: 1em; padding: 1em 1.5em; text-transform: uppercase; text-decoration: none; } /*= Dialog */ #dialog { width: 100%; height: 100%; transform: scale(0); position: fixed; top: 0; left: 0; z-index:
🌐
CodePen
codepen.io › sajidnagari › pen › xxxORZb
Custom popup modal In pure javascript
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Find elsewhere
🌐
CodePen
codepen.io › TomJ1588 › pen › raOmRK
Pure CSS Animated Modals
<a class="modal-open" href="#modal">Click To Open Regular Modal</a> <a class="modal-open" href="#modal-tabbed">Click To Open Tabbed Modal</a> <div class="modal" id="modal"> <div class="modal-content"> <a href="#" class="modal-close" title="Close Modal">X</a> <h3>Modal Title</h3> <div class="modal-area"> <p>Modal Content Here</p> </div> </div> </div> <div class="modal" id="modal-tabbed"> <div class="modal-content"> <a href="#" class="modal-close" title="Close Modal">X</a> <h3>Modal Title</h3> <div class="modal-area"> <p>Tabbed Modal tab content area must be fixed height for tab slide transition
🌐
CodePen
codepen.io › sahil4test › pen › xERYvX
Pure CSS popup/modal box without javascript
HTML CSS JS Result · HTML Options · Format HTML · View Compiled HTML · Analyze HTML · Maximize HTML Editor · Minimize HTML Editor · Fold All · Unfold All · <h1>Popup/Modal Windows without JavaScript</h1> <div class="box"> <a class="button" href="#popup1">Let me Pop up</a> </div> <div id="popup1" class="overlay"> <div class="popup"> <h2>Here i am</h2> <a class="close" href="#">&times;</a> <div class="content"> Thank to pop me out of that button, but now i'm done so you can close this window.
🌐
CodePen
codepen.io › mlegakis › pen › RVVqQN
Modal popup only css
... <h2>Modal window with title and button [close]</h2> <p><a href="#modal-10" class="link">Open Modal 0</a></p> <div data-ml-modal id="modal-10"> <a href="#!" class="modal-overlay"></a> <div class="modal-dialog modal-dialog-lg"> <a href="#!" class="modal-close">&times;</a> <h3>CSS Modal 1</h3> <div class="modal-content newspaper"> <ul> <li><strong>Fl.</strong> = Flute</li> <li><strong>B♭Cl.</strong> = Clarinet in B♭</li> <li><strong>S</strong> = Soprano (voice)</li> <li><strong>A</strong> = Alto (voice)</li> <li><strong>T</strong> = Tenor (voice)</li> <li><strong>Bar</strong> = Baritone (voice)</li> <li><strong>B</strong> = Bass (voice)</li> <li><strong>Fch.</strong> = Female chorus</li> <li><strong>Pno.</strong> = Piano</li> <li><strong>Pno.4h</strong> = Piano 4 hands</li> <li><strong>Gtr.</strong> = Guitar</li> <li><strong>Gtr.
🌐
CodePen
codepen.io › olavoasantos › pen › ggGaMO
Pure CSS: Modal Window
An online code editor, learning environment, and community for front-end web development using HTML, CSS and JavaScript code snippets, projects, and web applications.
🌐
CodePen
codepen.io › denic › pen › ZEbKgPp
CSS-only modal
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
🌐
CodePen
codepen.io › a7rarpress › pen › abRNZOe
Pure CSS Modal Box Card With HTML | Popup Modal Card
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS ...
🌐
CodePen
codepen.io › timothylong › pen › AJxrPR
Basic CSS-Only Modal
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
🌐
CodePen
codepen.io › erdemuslu › pen › JpPLZJ
Pure Css Popup
HTML CSS JS Result · HTML Options · Format HTML · View Compiled HTML · Analyze HTML · Maximize HTML Editor · Minimize HTML Editor · Fold All · Unfold All · <div class="container"> <a class="button" href="#popup">Open Modal</a> <div class="popup" id="popup"> <div class="popup-inner"> <div class="popup__photo"> <img src="https://images.unsplash.com/photo-1515224526905-51c7d77c7bb8?ixlib=rb-0.3.5&s=9980646201037d28700d826b1bd096c4&auto=format&fit=crop&w=700&q=80" alt=""> </div> <div class="popup__text"> <h1>Lorem ipsum dolor sit amet</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
🌐
CodePen
codepen.io › petebot › pen › AVYYyw
CSS Modal
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
🌐
CodePen
codepen.io › peiche › pen › kQwYVJ
Popup/Modal without JS
<h1>Popup/Modal Windows without JavaScript</h1> <div id="wrapper"> <p><a class="button" href="#popup1">Click Me</a></p> <p><a class="button" href="#popup2">Click Me Too</a></p> </div> <div id="popup1" class="overlay"> <div class="popup"> <h2>Info box</h2> <a class="close" href="#">&times;</a> <div class="content"> <p>This is done totally without JavaScript. Just HTML and CSS.</p> </div> </div> </div> <div id="popup2" class="overlay light"> <a class="cancel" href="#"></a> <div class="popup"> <h2>What the what?</h2> <div class="content"> <p>Click outside the popup to close.</p> </div> </div> </div>