+ 1
I have a problem with my html code I want my fixed header to appear next to my navigation bar.
4 odpowiedzi
+ 2
Comedy Co. can you attach your code here
+ 1
how will navigation bar and header be next to each other? You have set header width to 100..it will expand all through
0
<div class="wrapper">
<div class="wrapper_text">
LB Communications
</div>
<div class="navbar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li>< a href="#">Contact </a></li>
</ul>
</div>
</div>
body {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
height: 70px;
background: #ccc;
top: 0;
position: fixed;
}
.navbar ul {
list-style-type: none;
}
.navbar li {
float: left;
}
0
I think u should put <ul> and links in the wrapper div and then float it to the right, u need to delete <div class=“navbar”>