คุณสมบัติ border-bottom

คุณสมบัติ border-bottom กำหนดสี ประเภท และความหนาสำหรับขอบล่าง เป็น คุณสมบัติแบบย่อสำหรับ border-bottom-width, border-bottom-style และ border-bottom-color

ไวยากรณ์

cssselector {
  border-bottom: thickness type color;
}

ลำดับของคุณสมบัติไม่มีความสำคัญ

ตัวอย่าง

มาสร้างขอบล่างสีดำให้กับองค์ประกอบ หนา 2px:

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

Результат: