+ 1
Can u set width for the border with percents?
6 ответов
+ 6
It's look like it can't.......
But if border-radius it certainly can
And.....
Only such as padding that can use instead of border
+ 14
@Riste There's an option to mark the answer as best...do it for @Very Hard
+ 14
@Very Hard Go through my previous post again!
+ 5
@Dayve Css has so many very hard lessons 😗
+ 5
Percentages for 'border-width' property is not allowed by css specifications ( as they probably cannot determine relative to what size this should be applied: box? parent?... ), but you can use nested elements to simulate it ( as suggested by @Very Hard ) OR use others relatives units ( which have an implicite reference ), as em, rem ( relative to font size ), vw, vh ( relative to viewport ) and so on...
0
Thanks am learning and it is not explained.