Basic use
example.css
width: calc(100% / sibling-count());
The sibling-count() function returns how many siblings exist including the selected element.
width: calc(100% / sibling-count());width: calc(100% / sibling-count());Keep practicing CSS functions.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful