Created
July 18, 2022 07:07
-
-
Save mika76/16850e6d55dbbd1dfb4a85d620f32463 to your computer and use it in GitHub Desktop.
Fill empty css table cell td with pattern if empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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