Click here to Skip to main content
15,891,006 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In our project I want to create fixed header with scroll and navigation bar.But navbar icon is not working in mobile device.

What I have tried:

.header
{
	width: 100%;
	background-color: #2ebd71;
	border-bottom: 1px solid #f0f0f0;
    position: fixed;  
	top:0px;
	left: 0px;
}
Posted
Comments
[no name] 18-Sep-20 6:31am    
Try something that does work then merge the 2.
Bob@work 24-Sep-20 11:31am    
What is the navbar icon supposed to do? It's not in the code you provided.

Do you want a scrollable header that scrolls independently from the body of the page? If so, just define the height and scrolling of your .header class.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900