Modal Bootstrap

JS Modal (modal.js)

The Modal plugin is a dialog box/popup window that is displayed on top of the current page.
For a tutorial about Modals, read our Bootstrap Modal Tutorial.

The Modal Plugin Classes

ClassDescription
.modalCreates a modal
.modal-contentStyles the modal properly with border, background-color, etc. Use this class to add the modal's header, body, and footer.
.modal-headerDefines the style for the header of the modal
.modal-bodyDefines the style for the body of the modal
.modal-footerDefines the style for the footer in the modal. Note: This area is right-aligned by default. To change this, overwrite CSS with text-align:left|center
.modal-smSpecifies a small modal
.modal-lgSpecifies a large modal
.fadeAdds an animation/transition effect which fades the modal in and out

Trigger the Modal Via data-* Attributes

Add data-toggle="modal" and data-target="#modalID" to any element.
Note: For <a> elements, omit data-target, and use href="#modalID" instead:
<!-- Buttons -->
<button type="button" data-toggle="modal" data-target="#myModal">Open Modal</button>

<!-- Links -->
<a data-toggle="modal" href="#myModal">Open Modal</a>

<!-- Other elements -->
<p data-toggle="modal" data-target="#myModal">Open Modal</p>
SHARE

Milan Tomic

Hai my name Edi Kustriyadi and l newbie :)

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

luvne.com ayeey.com cicicookies.com mbepp.com tipscantiknya.com kumpulanrumusnya.comnya.com