Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What's the difference between hidden and none?
2 Respostas
+ 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).
0
Thank you!