Skip to content

Instantly share code, notes, and snippets.

@Shakil-Shahadat
Created December 20, 2020 18:42
Show Gist options
  • Save Shakil-Shahadat/fbc4c6133efc17b5a1d9413c611fecab to your computer and use it in GitHub Desktop.
Save Shakil-Shahadat/fbc4c6133efc17b5a1d9413c611fecab to your computer and use it in GitHub Desktop.
Centering a floating item
.box
{
position: sticky;
bottom: 20px;
width: 600px;
margin: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment