How do I create a Bootstrap Responsive site with a black background?
hi -
i’m beginning bootstrap site “navbar-inverse” nice. next, i’ve tried creating css rule body tag (.body {background: #000} fine if worked, doesn’t work. next tried making row bkgs black worked fine, somewhere there padding can’t find, creating white space between navbar , first row. know there must dozen ways need one. help?
thanks in advance,
ron finley
use 1 of dark bootstwatch themes. cyborg should work well.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>bootstrap template</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!--[if lt ie 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--cyborg theme-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/cyborg/bootstrap.min.css">
</head>
<body class="container-fluid">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar1"> <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 or logo</a></div>
<!-- add menu items-->
<div class="collapse navbar-collapse" id="navbar1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">home</a></li>
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">about <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">about 1</a></li>
<li><a href="#">about 2</a></li>
<li><a href="#">about 3</a></li>
</ul>
</li>
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">projects <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">project 1</a></li>
<li><a href="#">project 2</a></li>
<li><a href="#">project 3</a></li>
<li><a href="#">project 4</a></li>
<li><a href="#">project 5</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-6">
your content
</div>
<div class="col-md-6">
your content
</div>
</div>
</div>
<!--latest jquery core library-->
<script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<!--bootstrap-->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment