Hello dear coders,
I really need some help here… sometimes i notice i am having problems in CSS. I am using Bootstrap 3 and i am trying to align the navigation perfectly to the DIV header… i don’t know how to do this i will past my code in HTML and CSS here and a image how i want it to look. Can anybody please help me just with this issue?
image how i need to archive the navigation: http://s21.postimg.org/4ew2eiglj/Naamloos.png
How it looks now: http://s28.postimg.org/c7etw2ubx/advice.png
Please help me!
/* WPA Project Colors
White = #ffffff
Dark gray = #414042
Darker gray = #231f20
Light gray = #bcbec0
Lighter gray = #dcddde
Blue = #499ab4
*/
/* Import Fonts */
@import url(http://fonts.googleapis.com/css?family=Ubuntu:300,400,700);
/* WPA Global Style */
body {
font: 400 18px 'Ubuntu', helvetica, sans-serif;
color: #222;
}
p {
font-weight: 300;
}
h1, h2, h3, h4 {
text-transform: uppercase;
}
a {
color: #499ab4;
text-decoration: none;
-webkit-transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
transition: color .2s ease-in-out;
}
a:hover, a:focus {
color: #414042;
text-decoration: none;
}
/* end: WPA Global Style */
/* wpa-header */
.wpa-header {
background: #dcdddf;
height: auto;
bottom: 1;
left:0;
right:0;
position: fixed
}
.wpa-header h1 {
font: 700 22px 'Ubuntu', helvetica, sans-serif;
color: #414042;
}
/* end: wpa-header */
.wpa-top-bar {
margin: 20px 0px 20px 0;
}
.wpa-top-bar .fa {
color: #231f20;
font-size: 40px;
text-decoration: none;
vertical-align: middle;
margin-right: 5px;
}
.wpa-top-bar p {
font-size: 18px;
font-weight: 700;
}
.wpa-top-bar span {
color: #499ab4;
}
.wpa-top-nav {
margin-top: 20px;
}
.navbar-default{
border: none;
background: red;
border-radius: 0;
}
.navbar-default .navbar-nav>li>a{
font-size: 18px;
font-weight: 700;
text-transform: uppercase;
color: #fff;
padding: 11px 18px;
width: 370px;
text-align: left;
background: #414042;
border-right: 1px solid #FFF;
}
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus{
color: #fff;
background: #499ab4;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus{
color: #fff;
background: #499ab4;
outline: 0;
}
.navbar-toggle{
border: none;
margin-top: 0;
margin-right: 0;
width: 32px;
height: 32px;
text-align: center;
color: #fff;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus{
background: none;
outline: none;
}
.navbar-default .navbar-collapse{
border: none;
background: rgba(255,255,255,0.05);
border-radius: 2px;
box-shadow: none;
}
and the HTML:
<!doctype HTML>
<html>
<head>
<!-- Website Title -->
<title>Draw Factory</title>
<!-- Meta Info -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Draw Factory custom and unique design">
<meta name="keywords" content="HTML5, CSS3, JQuery, WordPress, Design">
<meta name="author" content="Me">
<!-- CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css"><!-- bootstrap -->
<link rel="stylesheet" href="css/font-awesome.min.css"><!-- font awesome -->
<link rel="stylesheet" href="css/style.css"><!-- custom style -->
</head>
<body>
<div class="wpa-header">
<div class="container">
<div class="row">
<div class="wpa-top-bar">
<div class="wpa-home text-left">
<div class="col-lg-6 col-md-6 col-sm-6">
<a href="#"><i class="fa fa-home"></i></a>
</div><!-- end: cols -->
</div><!-- end: wpa-home -->
<div class="wpa-phone text-right">
<div class="col-lg-6 col-md-6 col-sm-6">
<p><i class="fa fa-phone"></i> <span>+31(0)</span>10 - 447 00 30</p>
</div><!-- end: cols -->
</div><!-- end: wpa-phone -->
</div><!-- end: wpa-top-bar -->
</div><!-- end: row -->
<div class="wpa-top-nav">
<div class="row">
<div class="wpa-navigation">
<div class="col-lg-12">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Diensten</a></li>
<li><a href="#">Projecten</a></li>
<li><a href="#">Inloggen</a></li>
</ul>
</div>
</nav>
</div>
</div><!-- end: wpa-navigation -->
</div><!-- end: row -->
</div><!-- end: wpa-top-nav -->
</div><!-- end: container -->
</div><!-- end: wpa-header -->
<!-- Essential JQuery -->
<script src="js/jquery-latest.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>