Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Bootstrap Layouts</title>
- <link href="styles/main.css" rel="stylesheet" type="text/css" />
- <!-- Latest compiled and minified CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
- <!-- Optional theme -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
- </head>
- <body>
- <header class="navbar-inverse" role="banner">
- <div class="container">
- <nav role="navigation">
- <!-- Brand and toggle get grouped for better mobile display -->
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">Brand</a>
- </div>
- <!-- Collect the nav links, forms, and other content for toggling -->
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav">
- <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
- <li><a href="#">Link</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li role="separator" class="divider"></li>
- <li><a href="#">Separated link</a></li>
- <li role="separator" class="divider"></li>
- <li><a href="#">One more separated link</a></li>
- </ul>
- </li>
- </ul>
- </div><!-- /.navbar-collapse -->
- </nav>
- </div>
- </header>
- <div class="container"></div>
- <div class="row">
- <!--
- what the col-sm-4 does is that it gives it a size of 4 and once
- it sizes down to a certain size, it goes all into a column
- what the sm stands for is when the browser is at a small, you can also
- do a medium, large, extra small, etc.
- -->
- <div class="col-sm-6 col-xs-12">
- <div class="panel panel-primary">
- <div class="panel-heading">Widget 1</div>
- <div class="panel-body text-primary">
- Panel Content
- <a href="#" class="btn btn-primary">do something</a>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-xs-6">
- <div class="panel panel-success">
- <div class="panel-heading">Widget 2</div>
- <div class="panel-body">
- Black text, <span class="text-success">Panel Content</span>
- <a href="#" class="btn btn-success">do something</a>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-xs-6">
- <div class="panel panel-danger">
- <div class="panel-heading">Widget 3</div>
- <div class="panel-body text-danger">
- Panel Content
- <a href="#" class="btn btn-danger">do something</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Latest compiled and minified JavaScript -->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">
- </script>
- </body>
- </html>
- <!--
- Bootstrap allows you to make responsive layouts, and responsive layouts are
- layouts that act responsively to the users browser and/or device
- Style always goes on the top, and the actual coding goes on the bottom
- so that the style and webpage show first and all of the functionality comes
- last
- What a container class does it gets your elements centered
- -->
- -----------------------------------------------------------------------------------------------------------------------------
- .darkBG
- {
- background: #999;
- color: white;
- }
- .darkerBG
- {
- background: #666;
- color: white;
- }
- .darkestBG
- {
- background: #333;
- color: white;
- }
Add Comment
Please, Sign In to add comment