Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 672de76

Browse files
committedDec 15, 2024
Enhance responsiveness and styling of service section
Improved the layout for better visual appeal and responsiveness across the different screen sizes.
1 parent 43ea2fa commit 672de76

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
 

‎css/custom.css

+50
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,53 @@
2020
#navLogo {
2121
margin-top: 6px;
2222
}
23+
24+
/* This is for the service section on www */
25+
26+
#service .service-item {
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: space-between;
30+
align-items: center;
31+
padding: 20px;
32+
margin: 10px;
33+
border: 1px solid #ccc;
34+
border-radius: 8px;
35+
background-color: #fff;
36+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
37+
height: 350px;
38+
box-sizing: border-box;
39+
}
40+
41+
#service .service-item img{
42+
width: 100px;
43+
height: 100px;
44+
}
45+
@media screen and (min-width: 768px) and (max-width: 1043px) {
46+
.col-sm-6 {
47+
max-width: 50%;
48+
flex: 0 0 50%;
49+
}
50+
.service-item {
51+
height: auto;
52+
}
53+
}
54+
@media (max-width: 767.98px) {
55+
.col-sm-6 {
56+
max-width: 100%;
57+
flex: 0 0 100%;
58+
}
59+
}
60+
@media (min-width: 992px) and (max-width: 1199.98px) {
61+
.col-md-3 {
62+
max-width: 33.33%;
63+
flex: 0 0 33.33%;
64+
}
65+
}
66+
@media (min-width: 1200px) {
67+
.col-md-3 {
68+
max-width: 25%;
69+
flex: 0 0 25%;
70+
}
71+
}
72+

0 commit comments

Comments
 (0)
Please sign in to comment.