Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 60f6a270 authored by 65160260's avatar 65160260
Browse files

Edit style.css

parent ef723503
No related branches found
No related tags found
No related merge requests found
/* ตั้งค่าพื้นฐาน */ /* ตั้งค่าพื้นฐาน */
* {
box-sizing: border-box;
}
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #f4f4f4; background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* ทำให้เนื้อหากึ่งกลางแนวดิ่ง */
} }
/* คอนเทนเนอร์หลัก */ /* คอนเทนเนอร์หลัก */
.container { .container {
width: 80%; width: 80%;
margin: 20px auto; max-width: 900px;
background: white; background: white;
padding: 20px; padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
...@@ -43,6 +51,11 @@ th { ...@@ -43,6 +51,11 @@ th {
color: white; color: white;
} }
/* ปรับให้ตารางไม่ล้นจอ */
.table-wrapper {
overflow-x: auto;
}
/* ฟอร์ม */ /* ฟอร์ม */
form { form {
text-align: center; text-align: center;
...@@ -54,12 +67,18 @@ input, button { ...@@ -54,12 +67,18 @@ input, button {
margin: 5px; margin: 5px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 5px; border-radius: 5px;
font-size: 16px;
}
input {
width: 250px;
} }
button { button {
background-color: #28a745; background-color: #28a745;
color: white; color: white;
cursor: pointer; cursor: pointer;
transition: background-color 0.3s;
} }
button:hover { button:hover {
...@@ -108,6 +127,7 @@ a:hover { ...@@ -108,6 +127,7 @@ a:hover {
border: none; border: none;
cursor: pointer; cursor: pointer;
border-radius: 5px; border-radius: 5px;
transition: background-color 0.3s;
} }
.qty-btn:hover { .qty-btn:hover {
...@@ -124,6 +144,7 @@ a:hover { ...@@ -124,6 +144,7 @@ a:hover {
border-radius: 5px; border-radius: 5px;
font-size: 18px; font-size: 18px;
color: black; color: black;
transition: background-color 0.3s;
} }
.checkout-btn:hover { .checkout-btn:hover {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment