Create Full width element inside nested bootsrtap 3 grid

Description

The following code shows how to create Full width element inside nested bootsrtap 3 grid.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-2.0.2.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://getbootstrap.com/dist/css/bootstrap.css">
<script type='text/javascript'
  src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){<!-- ww w.  j  a  va2s .  c o m-->
$('#myModal').on('show.bs.modal', function (e) {
    $(this).find('.modal-body').html('Fired By: ' + e.relatedTarget.id);
})
});//]]>  
</script>
</head>
<body>
  <!-- Button trigger modal -->
  <button class="btn btn-primary btn-lg" id="modalOne"
    data-toggle="modal" data-target="#myModal">Launch demo modal
    1</button>
  <button class="btn btn-primary btn-lg" id="modalTwo"
    data-toggle="modal" data-target="#myModal">Launch demo modal
    2</button>
  <!-- Modal -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">
            <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
          </button>
          <h4 class="modal-title" id="myModalLabel">Modal title</h4>
        </div>
        <div class="modal-body">...</div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div>
    </div>
  </div>
  <!-- Post Info -->
  <div
    style='position: fixed; bottom: 0; left: 0; background: lightgray; width: 100%;'>
    About this SO Question: <a
      href='http://stackoverflow.com/q/24957742/1366033'>Full width
      element inside nested bootsrtap 3 grid</a> <br />Fork This Skeleton Here:
    <a href='http://jsfiddle.net/KyleMit/kcpma/'>Bootstrap 3 Skeleton</a>
    <br />
    <div>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well