Topic: Modal does not work in safari
Jenmud pro asked 8 years ago
Michal Szymanski staff answered 8 years ago
<div id="modal-button">
<a href="#top-section" class="btn-floating btn-large red" data-toggle="modal" data-target="#myModal">
<i class="fa fa-arrow-up"></i>
</a>
</div>
Custom style for button above:
#modal-button {
position: fixed;
right: 23px;
bottom: 23px;
padding-top: 15px;
margin-bottom: 0;
z-index: 998;
}
Your modal (of course you can fill it up with the whatever content you want):
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<!--Content-->
<div class="modal-content">
<!--Header-->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<!--Body-->
<div class="modal-body">
...
</div>
<!--Footer-->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
<!--/.Content-->
</div>
</div>
Let me know if it works for you.
Best,
Jenmud pro answered 8 years ago
<div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
<a class="btn-floating btn-large waves-effect waves-light red"
data-target="#modal-contact" data-toggle="modal"><i class=
"material-icons">contact_mail</i></a>
</div>
Jenda
Michal Szymanski staff answered 8 years ago
Jenmud pro answered 8 years ago
Jenmud pro answered 8 years ago
<form action="/send", method="post">
<div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
<a class="btn-floating btn-large waves-effect waves-light red"
data-target="#modal-contact" data-toggle="modal"><i class=
"material-icons">contact_mail</i></a>
</div>
<!-- Modal Contact -->
<div aria-hidden="true" aria-labelledby="myModalLabel" class=
"modal fade modal-ext" id="modal-contact" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<!--Content-->
<div class="modal-content">
<!--Header-->
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss=
"modal" type="button"><span aria-hidden=
"true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Write to us</h4>
</div>
<!--Body-->
<div class="modal-body">
<p>Send a enquiry message.</p>
<br>
<div class="md-form">
<i class="fa fa-user prefix"></i> <input class=
"form-control" id="form22" type="text" name="name">
<label for="form42">Your name</label>
</div>
<div class="md-form">
<i class="fa fa-envelope prefix"></i> <input class=
"form-control validate" id="form32" type="email" name="email">
<label for="form34" data-error="wrong">Your email</label>
</div>
<div class="md-form">
<i class="fa fa-tag prefix"></i> <input class=
"form-control" id="form32" type="text" name="subject"
value="Enquiry">
<label for="form34">Subject</label>
</div>
<div class="md-form">
<i class="fa fa-pencil prefix"></i>
<textarea class="md-textarea" id="form8" name="msg">
</textarea>
<label for="form8">Message</label>
</div>
</div>
<!--Footer-->
<div class="modal-footer">
<button class="btn btn-primary" type="submit">
Submit
</button>
<button class="btn btn-default" data-dismiss="modal" type=
"button">Close</button>
</div>
</div>
<!--/.Content-->
</div>
</div>
</form>
Also while I have your attention, not sure if you remember a while back I mentioned that the scroll on the rotated cards with mobile devices do not work very well. For example if you go to http://cuepilates.com.au/#about with your mobile device and rotate the Clare Mudron
card, you will notice that scrolling the body is not easy to do, and is not obvious that you can scroll.
Again I apologise for my beginner questions.
Thanks
Jenda.
Michal Szymanski staff answered 8 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No