0

When do we use hidden border and when do we use border-style:none?

21st Jul 2016, 1:44 AM
Shipra Chordia
Shipra Chordia - avatar
1 Answer
+ 3
border-style: hidden will override a border conflict. border-style: none will be ignored in a border conflict. For example, say you have two adjacent table cells. One specifies a border, one says none. If you use border collapse to merge the borders, the 'none' style will be ignored and a border appear. If you use 'hidden' on the second cell, no border will appear on that cell, even with border collapse.
21st Jul 2016, 1:02 PM
Brian