24 little known CSS facts

Updated . Posted . Visible to the public.

This blew my mind today:

Please make sure to check browser support for CSS features on Can I Use Show archive.org snapshot and the Mozilla Development Network Show archive.org snapshot before using.

Favorites

  • outline-offset: specify how far away from the element an outline is rendered
  • ::first-letter: matches the first letter inside an element
  • Using Unicode letters as css classes, e.g.
  • font-weight: relative keywords bolder and lighter, which will render a font in "inherited font-weight +/- 100"
Henning Koch
Last edit
Emanuel
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2015-07-17 08:53)