.container-fluid - A container that spans the full width of the screen - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:container-fluid

Description

.container-fluid - A container that spans the full width of the screen

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
</head><!--   w  w  w. ja  va  2 s  .  c  o  m-->
<body>

<div class="container-fluid">
  <h1>My First Bootstrap Page</h1>
  <p>This part is inside a .container-fluid class.</p>
  <p>The .container-fluid class provides a full width container, spanning the entire width of the viewport.
    This is a test. This is a test. This is a test.
  This is a test. This is a test. This is a test.
  This is a test. This is a test. This is a test.
    This is a test. This is a test. This is a test.
  This is a test. This is a test. This is a test.
  This is a test. This is a test. This is a test.
  </p>
</div>

</body>
</html>

Related Tutorials