+ 1

I have a problem with my html code I want my fixed header to appear next to my navigation bar.

5th Apr 2018, 4:55 AM
Comedy Co.
Comedy Co. - avatar
4 Antworten
+ 2
Comedy Co. can you attach your code here
5th Apr 2018, 4:56 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
how will navigation bar and header be next to each other? You have set header width to 100..it will expand all through
5th Apr 2018, 5:47 AM
Abhishek Rawat
Abhishek Rawat - avatar
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; }
5th Apr 2018, 5:08 AM
Comedy Co.
Comedy Co. - avatar
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”>
5th Apr 2018, 3:54 PM
Reza