You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set the .toolbar (first child of <body>) to position: sticky you won't need to set a margin-top on the <html> which is easier to maintain and allows writing less styles if you want to change the height/elements within the top nav at different media query breakpoints. I wonder if it's more performant for mobile devices as well 🤷🏼♂️ I remember apple.com had their top nav (mobile only) using position: sticky but now they are using position: fixed 🤔 (Though that appears to be for the blur effect they have)
The text was updated successfully, but these errors were encountered:
If you set the
.toolbar
(first child of<body>
) toposition: sticky
you won't need to set amargin-top
on the<html>
which is easier to maintain and allows writing less styles if you want to change the height/elements within the top nav at different media query breakpoints. I wonder if it's more performant for mobile devices as well 🤷🏼♂️ I remember apple.com had their top nav (mobile only) usingposition: sticky
but now they are usingposition: fixed
🤔 (Though that appears to be for the blur effect they have)The text was updated successfully, but these errors were encountered: