Skip to content

Commit ec5edb8

Browse files
Create styles.css
CSS for styling and tabs
1 parent 7c6239b commit ec5edb8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

styles.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
body { font-family: Arial, sans-serif; margin: 20px; }
2+
header { text-align: center; }
3+
nav ul { list-style: none; padding: 0; display: flex; justify-content: center; }
4+
nav li { margin: 0 10px; }
5+
section { margin-top: 20px; padding: 20px; border: 1px solid #ccc; }
6+
7+
/* Pure CSS Tabs (Optional Enhancement) */
8+
.tabs { display: none; } /* Hide radio inputs */
9+
.tab-label { cursor: pointer; padding: 10px; background: #eee; }
10+
.tab-content { display: none; }
11+
.tabs:checked + .tab-label { background: #ddd; }
12+
.tabs:checked ~ .tab-content { display: block; }
13+
14+
/* Media query for responsiveness */
15+
@media (max-width: 600px) { nav ul { flex-direction: column; } }

0 commit comments

Comments
 (0)