.button-clear { position: absolute; top: 96px; z-index: 1; right: 41vw; } .button-help { position: absolute; top: 96px; z-index: 1; right: 35vw; } table.ti-custom-table thead { height: 50px; } table.ti-custom-table thead th span { font-size: 12px; font-weight: bold; } .ti-modal-content-search{ width: 90%; /* ความกว้างที่คุณต้องการ */ position: absolute; /* ทำให้สามารถจัดตำแหน่งได้ */ top: 50%; /* ให้อยู่กลางในแนวตั้ง */ left: 50%; /* ให้อยู่กลางในแนวนอน */ transform: translate(-50%, -50%); /* เคลื่อนที่ modal กลับมาให้ตรงกลาง */ background-color: #fff; overflow-y: auto; } .ti-modal-body-search { display: flex; /* ใช้ flexbox เพื่อจัดตำแหน่ง */ justify-content: center; /* จัดฟอร์มให้อยู่กลางในแนวนอน */ flex-direction: column; /* ทำให้ฟอร์มแสดงผลในรูปแบบคอลัมน์ */ height: calc(100% - 50px); /* ให้ความสูงเป็น 100% ลบด้วยระยะห่างข้างบน */ margin-left: 100px; margin-right: 50px; } .ti-modal-center{ width: 100%; height: 45px; margin-top: 2px; } .ti-modal .ti-modal-body{ padding: 16px; padding-top: 0rem; overflow-y: 0%; } .header-title-type { width: 100%; min-height: 50px; /* ใช้ min-height เพื่อให้มีความยืดหยุ่น */ margin-bottom: 10px; justify-content: space-between; /* จัดเรียงองค์ประกอบภายใน */ align-items: center; /* จัดกลางแนวตั้ง */ }