+ 1

Can u set width for the border with percents?

14th Apr 2017, 5:30 PM
Riste Petrov
Riste Petrov - avatar
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
14th Apr 2017, 5:33 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 14
@Riste There's an option to mark the answer as best...do it for @Very Hard
14th Apr 2017, 5:41 PM
Dev
Dev - avatar
+ 14
@Very Hard Go through my previous post again!
14th Apr 2017, 6:10 PM
Dev
Dev - avatar
+ 5
@Dayve Css has so many very hard lessons 😗
14th Apr 2017, 6:07 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 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...
15th Apr 2017, 2:47 AM
visph
visph - avatar
0
Thanks am learning and it is not explained.
14th Apr 2017, 5:35 PM
Riste Petrov
Riste Petrov - avatar