Skip to content

v4 - Modal align vertical center #23638

Closed

Description

@marlonmleite

I need to leave my modal aligned to the center of the screen vertically.

I tried with Flex and with Translate, however the 2 solutions cause bizarre behavior in the modal.

Is there any native form of bootstrap v4 doing this or some workround?

Several workround's found have problem when content is large.

Activity

  1. Johann-S commented on Aug 23, 2017

    @Johann-S
    Member

    I don't think currently we have a workround on how to that 🤔 but maybe I'm wrong

  2. added
    cssSass sources or compiled CSS
    v4v4, the frozen docs on gh-pages
    on Aug 23, 2017
  3. added
    has-prAn open pull request addresses it
    on Oct 23, 2017
  4. added a commit that references this issue on Oct 23, 2017
    30263f2
  5. added a commit that references this issue on Oct 29, 2017
    b1623c4
  6. added a commit that references this issue on Dec 30, 2017
    ea1c866
  7. krystyna93 commented on Jan 22, 2018

    @krystyna93

    the .modal-dialog-centered does not work! Please explain??

  8. marlonmleite commented on Jan 22, 2018

    @marlonmleite
    Author

    @krystyna93 you are using v4.0.0-beta.3 or more?

  9. sfgn commented on Jan 24, 2018

    @sfgn

    Was also not working for me on v4.0.0-beta.2, but I've now upgraded to v4.0.0 and working perfectly.

  10. krystyna93 commented on Jan 24, 2018

    @krystyna93
  11. ChVince commented on Jan 31, 2018

    @ChVince

    According to the documentation IE10+ is supported. But class .modal-dialog-centered doesn't work correctly in IE11 (tried with sample from docs ). As far as I understand it's known flexbox IE11 issue, for which workaround is available. Are there any known side effects of this workaround ? If no, why it's not included into bootsrap 4.0.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssSass sources or compiled CSShas-prAn open pull request addresses itv4v4, the frozen docs on gh-pages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions