Creating our custom modal
Now that you have learned how to use a Bootstrap modal, let's customize it for our example. First, let's add some content inside our .modal-body
and edit .modal-header
and .modal-footer
a little:
<div class="modal fade" id="tweet-modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <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">Dog a new tweet</h4> </div> <div class="modal-body"> <textarea class="form-control" rows="4" placeholder="What you want to bark?" maxlength="140"></textarea> </div> <div class="modal-footer"> <span class="char-count pull-left" data-max="140">140</span> <...