Skip to content

Instantly share code, notes, and snippets.

@mika76
Created July 18, 2022 07:07
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 mika76/16850e6d55dbbd1dfb4a85d620f32463 to your computer and use it in GitHub Desktop.
Save mika76/16850e6d55dbbd1dfb4a85d620f32463 to your computer and use it in GitHub Desktop.
Fill empty css table cell td with pattern if empty
/* Some different patterns: https://www.magicpattern.design/tools/css-backgrounds */
td.fill-empty:empty {
opacity: 0.8;
background-size: 10px 10px;
background-image: repeating-linear-gradient(45deg, #f2f2f2 0, #f2f2f2 2px, rgba(255, 0, 0, 0) 0, rgba(255, 0, 0, 0) 50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment