Open tommygebru opened 5 years ago
You can allow the navigation bar to stick to the top of your webpage using the following styles:
.header{ position: fixed; background-color: black; top:0; }
The top css property is used for css positioning, you can read more about it here https://developer.mozilla.org/en-US/docs/Web/CSS/top
top
There is also a (sort of long) article on CSS positioning – but the diagrams are really helpful :100:
Advanced Positioning Tutorial | HTML & CSS Is Hard
You can allow the navigation bar to stick to the top of your webpage using the following styles:
The
top
css property is used for css positioning, you can read more about it here https://developer.mozilla.org/en-US/docs/Web/CSS/topThere is also a (sort of long) article on CSS positioning – but the diagrams are really helpful :100:
Advanced Positioning Tutorial | HTML & CSS Is Hard