What's the difference between hidden and none? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the difference between hidden and none?

9th Dec 2021, 1:39 PM
Benjamin Joseph
Benjamin Joseph - avatar
2 Answers
+ 3
none means no border will show, and the computed border-width is zero. hidden has the same meaning as none, except when it refers to table borders in cases where two cells share a border, and the table cells have collapsed borders (border-collapse:collapse;). The value hidden ensures that no border is drawn, since hidden takes precedence over all other border styles. If none had been used for one border in the cell, the border would still be drawn, as the adjacent cell’s border would take precedence.  Ref here: https://www.sitepoint.com/border-style-css-property/#:~:text=none%20means%20no%20border%20will,%2Dcollapse%3Acollapse%3B%20).
9th Dec 2021, 2:15 PM
NEZ
NEZ - avatar
0
Thank you!
9th Dec 2021, 2:18 PM
Benjamin Joseph
Benjamin Joseph - avatar