CSS Tips

CSS Tips by Marko Denic is a compilation of things that can be done with CSS. It contains

  • A typing effect
  • drop-shadow for transparent images
  • Smooth scrolling
  • Styling cursors
  • Truncating text
  • Truncating text to a specific number of lines
  • Styling selected with ::selection text
  • Making any element resizable
  • Styling empty elements
  • Custom scrollbars
  • Scroll snap
  • Dynamic tooltips
  • Defining the caret color
  • ::in-range and ::out-of-range to style values inside and outside of min/max values
  • Fancy text with background-clip
  • Gapping flexbox with gap