คุณสมบัติ border-bottom
คุณสมบัติ border-bottom กำหนดสี
ประเภท และความหนาสำหรับขอบล่าง เป็น
คุณสมบัติแบบย่อสำหรับ border-bottom-width,
border-bottom-style
และ border-bottom-color
ไวยากรณ์
selector {
border-bottom: thickness type color;
}
ลำดับของคุณสมบัติไม่มีความสำคัญ
ตัวอย่าง
มาสร้างขอบล่างสีดำให้กับองค์ประกอบ
หนา 2px:
<div id="elem"></div>
#elem {
border-bottom: 2px solid black;
background: #f9f9f9;
width: 300px;
height: 100px;
}
: