How can I properly center my banner and place the logo above it? Currently, both elements are not centered as desired.
View the live version here: http://codepen.io/anon/pen/waYBxB
HTML Code:
</head>
<body>
<!-- LOGO HEADER -->
<section>
<div class="container">
<div class="row">
<div class="col-md-6"><img src="http://gvsfoundation.org/wp-content/uploads/2013/04/your-logo-here-27.png" class="Logo"></div>
<div class="col-md-6"></div>
</div>
</div>
</section>
<!-- SLIDING BANNER -->
<section class="Banner ">
<div class="container midText">
<div class="col-md-12 text-center hidden-xs"><img src="http://oi58.tinypic.com/eb61xd.jpg" class="img-responsive"></div>
</div>
</section>
<!-- MENU BAR -->
<section>
<div class="container">
<div class="col-md-12">
<nav>
<ul>
<li><a href="?p=home">Home</a></li>
<li><a href="?p=home">Codepen.io</a></li>
<li><a href="?p=home">A longer button</a></li>
<li><a href="?p=home">This is my really long button</a></li>
<li><a href="?p=home">About Us</a></li>
<li><a href="?p=home">Contact</a></li>
</ul>
</nav>
</div>
</section>
<!-- MAIN CONTENT -->
<section>
<div class="container" id="MainPage">
<div class="row">
<div class="col-md-9 MainContent"><h3>codepen ---- CODING HAS NEVER BEEN SO EASY!</h3><br> Notice how the white background is centered but not the image and the logo. How can I fix this? </div>
<div class="col-md-2">I AM IN THE BANNER SECTION </div>
</div>
</div>
</section>
</body>
</html>
<!-- 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">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
CSS Code:
body {
background-image: url(http://oi60.tinypic.com/2hhnpzn.jpg);
}
nav ul {
list-style: none;
overflow: hidden;
height: 47px;
}
nav ul li a {
color: #F9F7F7;
background-image: linear-gradient(to top, #ff6351, #ffcc6e);
padding: 8px 22px 8px 22px;
display: block;
text-align: center;
font-size: 22px;
float: left;
margin-right: 5px;
color: rgb(255, 255, 255);
background-color: rgb(120, 120, 120);
text-shadow: rgb(79, 79, 79) 1px 1px 3px;
}
.Logo {
margin: 15px;
}
#MainPage {
background-color: white;
}
.midText {
text-align:center;
}
.MainContent {
margin: 33px;
}