Computer >> 컴퓨터 >  >> 프로그램 작성 >> CSS

CSS를 사용하여 왼쪽 테두리의 너비 설정

<시간/>

왼쪽 테두리의 너비를 설정하려면 border-left-width를 사용하세요. CSS의 속성. 다음 코드를 실행하여 border-left-width를 구현할 수 있습니다. 속성 -

예시

<!DOCTYPE html>
<html>
   <head>
      <style>
         p {
            border-style: dashed;
            border-left-width: 10px;
         }
      </style>
   </head>
   <body>
      <p>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.</p>
   </body>
</html>

출력

CSS를 사용하여 왼쪽 테두리의 너비 설정