Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suggestion: Use sticky positioning for cutestrap.com's top nav .toolbarΒ #52

@dallanlee

Description

@dallanlee

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions