Properti border-bottom-width

Properti border-bottom-width mengatur ketebalan batas bawah. Nilai properti dapat berupa satuan untuk ukuran apa pun, kecuali persentase, atau kata kunci thin (batas sebesar 2 piksel), medium (batas sebesar 4 piksel) atau thick (batas sebesar 6 piksel). Nilai default: medium.

Sintaksis

cssselektor {
  border-bottom-width: nilai;
}

Contoh

Mari atur batas bawah dengan ketebalan satu piksel:

html<div id="elem"></div>
css#elem {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: black;
  
  background: #f9f9f9;
  width: 300px;
  height: 100px;
}

Результат:

Lihat juga