Direction: Choose the correct option
Q1.
.fixed-nav {
position: fixed;
top: 0;
width: 100%;
}How does this navigation bar behave?Direction: Choose the correct option
Q2.
body {
margin-top: 60px;
}Why is this added when using a fixed navbar?Direction: Choose the correct option
Q3.
.sticky-nav {
position: sticky;
top: 0;
}How is sticky different from fixed?Direction: Choose the correct option
Q4.
What is a common use case for sticky positioning?
Direction: Choose the correct option
Q5.
.sidebar {
position: sticky;
top: 20px;
}When does this sidebar start sticking?