CSS popup
How do I make an css popup?
What is a css popup? How do you make a css popup? This script and codes were developed by Sudipta Das on 21 January 2023, Saturday.
CSS popup - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS popup</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="outer"> <div class="button" onclick="show()">
<button>Log In Button</button> </div>
<div id="popup"> <span>This is a restricted area</span>
</div>
<div class="password"><span>Forgot Password?</span></div>
</div> <script src="js/index.js"></script>
</body>
</html>
CSS popup - Script Codes CSS Codes
.outer{
}
.button{ margin-bottom:15px
}
button{ left:50%; position:relative; margin-left:-50px;
}
.password{ text-align:center
}
#popup{ width:200px; height:30px; font-size:1.2em; text-align:center; position:absolute; background-color:black; color:white; left:50%; margin-left:-100px; z-index:1; visibility:hidden; padding-top:3px; border-radius:6px;
}
#popup::before { content: ""; position: absolute; top: -10px; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent transparent #555 transparent;
}
.show{ visibility:visible !important; animation:fadein 1s;
}
@keyframes fadein{ from{opacity:0;} to{opacity:1;}
}
CSS popup - Script Codes JS Codes
function show(){ document.getElementById('popup').classList.add('show')
}
Developer | Sudipta Das |
Username | sdas13 |
Uploaded | January 21, 2023 |
Rating | 3 |
Size | 1,977 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Wiki Viewer 1 | 3,298 Kb |
MS | 2,220 Kb |
Form Submission | 1,993 Kb |
Wiki Viewer | 4,181 Kb |
JS and The DOM | 1,686 Kb |
Random Quotes | 2,655 Kb |
CSS framework | 1,716 Kb |
Onepush - best websites | 4,549 Kb |
Javascript DOM | 1,893 Kb |
Accordion | 1,843 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
CSS Colors | Alexpate | 2,232 Kb |
NgEasyModal | Lorenzodianni | 4,159 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
Light Switch | Bartuc | 4,933 Kb |
Twinkling Stars | Ripley6811 | 2,750 Kb |
Resize image | Happyhj | 1,892 Kb |
Experiment | Toddmoy | 2,849 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!