Reputation: 14419
Any ideas, why my background does not fade when this modal appears?
<div id="myModal" class="modal fade" style="" >
<div class="modal-dialog" style="position: relative; top: 137px;width:1000px;height:350px;">
<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">Modal title</h4>
</div>
<div class="modal-body">
<div>
<table id="foobar" class="table table-condensed table-striped table-bordered small">
<thead>
<th style="width:100px;">Host ID</th>
<th style="width:100px;">col 2</th>
<th style="width:100px;">col 3</th>
<th>col 4</th>
<th>col 5</th>
<th>col 6</th>
<th>col 7</th>
<th>col 8</th>
<th>col 9</th>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
Upvotes: 1
Views: 690
Reputation: 14419
Bootstrap 3.3.1 has a bug in the CSS. 3.3.2 Fixes this issue.
Upvotes: 1
Reputation: 2762
Your Model works fine in this Fiddle.
Try placing your CSS Bootstrap link last... below any of your custom CSS links.
To see if it is a custom CSS file is creating this issue for you.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
Upvotes: 0