Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Toasts Placement Example
Keywords : toast, bootstrap, bootstrap toast, bootstrap toast examples, bootstrap toaster, bootstrap toast delay, bootstrap toast notification, bootstrap change toast placement, bootstrap toast placement example
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Toasts Placement Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> <script> $(function() { $('.toast').toast('show'); }); </script> </head> <body> <div class="container-fluid bcontent"> <h2>Bootstrap Toasts Placement</h2> <hr /> <div style="position: relative;min-height: 300px;"> <div style="position: absolute; top: 0; right: 0;min-width: 300px;"> <div class="toast" data-autohide="false"> <div class="toast-header"> <strong class="mr-auto">Sample Toast</strong> <small class="text-muted">11 mins ago</small> <button type="button" class="ml-2 mb-1 close" data-dismiss="toast">×</button> </div> <div class="toast-body"> Hi, Welcome to tutlane.com. </div> </div> <div class="toast" data-autohide="false"> <div class="toast-header"> <strong class="mr-auto">Sample Toast</strong> <small class="text-muted">11 mins ago</small> <button type="button" class="ml-2 mb-1 close" data-dismiss="toast">×</button> </div> <div class="toast-body"> Hi, Welcome to tutlane.com. </div> </div> </div> </div> </div> </body> </html>
Click Here to See Result
Result
Previous
Next