CSS三角形生成

ボーダーを使ってCSS三角形を作成

ブラウザ処理データはブラウザの外に出ることはありません

Triangle Direction

Size

Width80px
Height80px
Equal Sides

Color

Preview

CSS (Border Method)

.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 80px solid #3b82f6;
}

CSS (Clip-path Method)

.triangle {
  width: 80px;
  height: 80px;
  background-color: #3b82f6;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

HTML

<div class="triangle"></div>

Quick Select

About CSS三角形生成

ボーダーを使ってCSS三角形を作成

Use this free online cssジェネレーター tool to work faster without installing extra software. The interface is built for quick input, clear output, and straightforward results on desktop and mobile devices.

Processing

This tool runs in your browser whenever possible, which keeps your inputs private and reduces unnecessary round-trips to the server.