diff --git a/style.css b/style.css index fbd9a989f0ccc17abd34398dd9e650531c2ce7a3..e0599a3e3ee0d7335608c1edbd19087fb1090c77 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 +}