Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Javascript And PHP Ajax
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Berk" data-source="post: 412359" data-attributes="member: 63611"><p>ID meant to be onclick="toggleProfile(<?php $array['id']; ?>)". I messed it up.</p><p></p><p>Modal only uses CSS. Here is it's CSS:</p><p>[CODE]</p><p><style>.modalDialog {</p><p> position: fixed;</p><p> font-family: Arial, Helvetica, sans-serif;</p><p> top: 0;</p><p> right: 0;</p><p> bottom: 0;</p><p> left: 0;</p><p> background: rgba(0,0,0,0.8);</p><p> z-index: 99999;</p><p> opacity:0;</p><p> -webkit-transition: opacity 400ms ease-in;</p><p> -moz-transition: opacity 400ms ease-in;</p><p> transition: opacity 400ms ease-in;</p><p> pointer-events: none;</p><p>}</p><p>.modalDialog:target {</p><p> opacity:1;</p><p> pointer-events: auto;</p><p>}</p><p></p><p>.modalDialog > div {</p><p> width: 700px;</p><p> position: relative;</p><p> margin: 10% auto;</p><p> padding: 5px 20px 13px 20px;</p><p> border-radius: 10px;</p><p> background: white;</p><p> height:500px;</p><p>}.close {</p><p> background: #606061;</p><p> color: #FFFFFF;</p><p> line-height: 25px;</p><p> position: absolute;</p><p> right: -12px;</p><p> text-align: center;</p><p> top: -10px;</p><p> width: 24px;</p><p> text-decoration: none;</p><p> font-weight: bold;</p><p> -webkit-border-radius: 12px;</p><p> -moz-border-radius: 12px;</p><p> border-radius: 12px;</p><p> -moz-box-shadow: 1px 1px 3px #000;</p><p> -webkit-box-shadow: 1px 1px 3px #000;</p><p> box-shadow: 1px 1px 3px #000;</p><p>}</p><p></p><p>.close:hover { background: #00d9ff; }</style></p><p>[/CODE]</p><p>And to open, i do <a href="#openModal" >Modal</a> and for modal <div id="openModal"></p><p>So if you have any better code, please share with me.</p></blockquote><p></p>
[QUOTE="Berk, post: 412359, member: 63611"] ID meant to be onclick="toggleProfile(<?php $array['id']; ?>)". I messed it up. Modal only uses CSS. Here is it's CSS: [CODE] <style>.modalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.8); z-index: 99999; opacity:0; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; pointer-events: none; } .modalDialog:target { opacity:1; pointer-events: auto; } .modalDialog > div { width: 700px; position: relative; margin: 10% auto; padding: 5px 20px 13px 20px; border-radius: 10px; background: white; height:500px; }.close { background: #606061; color: #FFFFFF; line-height: 25px; position: absolute; right: -12px; text-align: center; top: -10px; width: 24px; text-decoration: none; font-weight: bold; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; -moz-box-shadow: 1px 1px 3px #000; -webkit-box-shadow: 1px 1px 3px #000; box-shadow: 1px 1px 3px #000; } .close:hover { background: #00d9ff; }</style> [/CODE] And to open, i do <a href="#openModal" >Modal</a> and for modal <div id="openModal"> So if you have any better code, please share with me. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Javascript And PHP Ajax
Top