border-collapse
Tables
Merges adjacent cell borders into one; collapse avoids doubled lines.
| How to write it | border-collapse: separate; |
|---|---|
| Common values | separate, collapse |
| Inherited | Yes — children receive it |
| Category | Tables |
How to read this
- An inherited property only needs writing once on the parent — every child picks it up. Most text properties work this way.
- A shorthand resets whatever you leave out. Writing background: red alone also wipes a background image you set earlier.
- When rules collide, the more specific selector wins; only when specificity ties does source order decide.
- Animate transform and opacity for smoothness. Changing width or top forces the layout to be recalculated.
Frequently asked questions
Q. What is the CSS border-collapse property?
Merges adjacent cell borders into one; collapse avoids doubled lines.
Q. How do you write border-collapse?
As border-collapse: separate; Common values include separate, collapse.
Q. Is border-collapse inherited?
Yes. Set it once on the parent and every child uses the same value without repeating it.
Q. What group does border-collapse belong to?
The tables group.