Skip to content

Instantly share code, notes, and snippets.

@jamiehs
Created October 16, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiehs/3902003 to your computer and use it in GitHub Desktop.
Save jamiehs/3902003 to your computer and use it in GitHub Desktop.
Intrinsic width on a block level element
div {
width: intrinsic; /* Safari/WebKit uses a non-standard name */
width: -moz-max-content; /* Firefox/Gecko */
}
@jamiehs
Copy link
Author

jamiehs commented Oct 16, 2012

Here's the Mozilla developer page for the browser specific explanations: https://developer.mozilla.org/en-US/docs/CSS/width#Examples

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