How to customize the length of border-bottom

how to customize the length of border-bottom

Css
Mar.15,2021

I also saw @ Feng Hengzhi's answer, add to it

<div class='block'></block>

style 
.block::after {
content: '';
  width: 96%;
  height: 1px;
  display: block;
  margin: 0 auto;
  border-bottom: 1px solid rgba(151, 151, 151, 0.1);
}

border-bottom cannot customize the length, but can only customize the width
if there is a need for custom length, it can be implemented with pseudo elements

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb33cc-243d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb33cc-243d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?