CSS
 Computer >> コンピューター >  >> プログラミング >> CSS

CSSでアウトラインの幅を設定します


アウトライン幅 プロパティは、アウトラインの幅を設定するために使用されます。その値は、長さ、または thin、medium、thickのいずれかの値である必要があります。 、border-width属性と同じです。

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:thin; outline-style:solid;">
         This text is having thin outline.
      </p>
      <br />
      <p style = "outline-width:thick; outline-style:dashed;">
         This text is having thick outline.
      </p>
      <br />
      <p style = "outline-width:5px; outline-style:dotted;">
         This text is having 5x outline.
      </p>
   </body>
</html>

  1. CSSを使用して列間のルールの幅を設定します

    column-rule-widthを使用します 列間のルールの幅を設定するプロパティ。 例 次のコードを実行して、column-rule-widthプロパティを実装してみてください。 <!DOCTYPE html> <html>    <head>       <style>          .demo {             column-count: 4;   &nb

  2. CSSでタブ文字の幅を設定する

    タブサイズを使用します タブ文字の幅を設定するCSSのプロパティ。次のコードを実行して、tab-sizeプロパティを実装してみてください 例 <!DOCTYPE html> <html>    <head>       <style>          #demo {             tab-size: 12;          }