Is there a way to vertically center a modal window on the screen, regardless of the size of the content being displayed? I'm currently using an image as a modal window in my page, and while I was able to align it horizontally, I'm struggling to get it centered vertically. Any suggestions or examples of how this can be achieved?
I tried following this example: modal window demo plunker
However, the actual content of my modal window looks like this:
<script type="text/ng-template" id="myModalContent.html">
<div>
<img class= "attachmentImage" src={{items}} />
</div>
</script>
Should I make changes in bootstrap.min.css
or ui-bootstrap-tpls-0.13.0.js
, or is it better to handle this with my own stylesheet?
Thank you for your assistance. Please let me know if more information is needed.