first (of future, I guess) problem with my project
if I use “position: fixed” for the header, the first part of the page is covered by this header
I tried to wrap all the page in a container with “position: relative” but it doesn’t work
I also tried to add margin-top to the presentation section but again, no results
please, help
Hi @francesca.giammichel. Try this:
header {
position: sticky;
top: 0px;
}
More detailed explanations position - CSS: Cascading Style Sheets | MDN
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.