Skip to content

Instantly share code, notes, and snippets.

@jpgls
Last active June 21, 2016 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpgls/b838840aacc8edfed2dbb975ab1f4f23 to your computer and use it in GitHub Desktop.
Save jpgls/b838840aacc8edfed2dbb975ab1f4f23 to your computer and use it in GitHub Desktop.
CSS Maximum Vaues

CSS Maximum Values

Found some maximum possible values for various CSS elements today, which don't seem to be documented anywhere that I was able to find

outline-width

  • 65534px
    • Also the ZIP Code for Laquey, MO
  • Browsers seem to accept higher values, but stop rendering the outline after this
    • outline-width: 65534px; = a gigantic outline
    • outline-width: 65535px; = no outline *This width applies even if the element is passed to the GPU for rendering using -webkit-transform: translateZ(0);
  • Turns out 65535 is the highest number which can be represented by an unsigned 16 bit binary number
  • This is the ZIP Code of Leasburg, MO
  • This seems to be a similar case to the maximum possible z-index value: 2147483647
  • There are a lot of obscurely significant things that relate to this number
  • Tested in Safari and Chrome

z-index

font-size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment