+ 4

In CSS, none & hidden border styles are equal or not?

https://code.sololearn.com/WQo3ThlUy2qJ/?ref=app

11th May 2017, 5:50 PM
Rohit Rana
Rohit Rana - avatar
2 Antworten
+ 4
They are visually the same only if the border width is zero ( or undefined ), else 'hidden' is equivalent to set a border color to 'transparent' value: the border is not visible but space required for its width is reserved on display, while 'none" will not display the border and NOT reserve space for it ^^
12th May 2017, 4:30 AM
visph
visph - avatar
+ 3
no they are not equal but visually they are same. hidden means no visible border. none means no border.
11th May 2017, 6:11 PM
MR Programmer
MR Programmer - avatar