From 71f618d12b64a262936672bcf787ed8033395cac Mon Sep 17 00:00:00 2001 From: 65160260 <65160260@go.buu.ac.th> Date: Wed, 26 Mar 2025 02:39:36 +0000 Subject: [PATCH] Edit style.css --- style.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index fbd9a98..e0599a3 100644 --- a/style.css +++ b/style.css @@ -14,6 +14,7 @@ body { padding: 20px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); border-radius: 10px; + text-align: center; /* ทำให้เนื้อหาใน container อยู่ตรงกลาง */ } /* หัวข้อ */ @@ -23,6 +24,11 @@ h2 { } /* ตารางสินค้า */ +.table-container { + width: 80%; /* จำกัดความกว้างของตาราง */ + margin: auto; /* จัดให้อยู่ตรงกลาง */ +} + table { width: 100%; border-collapse: collapse; @@ -128,4 +134,4 @@ a:hover { .checkout-btn:hover { background-color: #e0a800; -} \ No newline at end of file +} -- GitLab