-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfolio.css
More file actions
82 lines (72 loc) · 1.52 KB
/
Copy pathportfolio.css
File metadata and controls
82 lines (72 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* General Body Styling */
/* i didnot do it on my own, i took help from chatgpt but i didnot understand anything*/
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #fff;
}
/* Heading Styling */
h1 {
text-align: center;
background-color: #008000; /* Green header like in image */
color: white;
padding: 20px 0;
margin: 0;
}
h2 {
text-align: center;
color: #000;
}
/* Portfolio Title */
h1 + h2 {
margin-top: 10px;
font-size: 18px;
color: black;
font-weight: normal;
}
/* Portfolio Section */
h1:nth-of-type(2) {
text-align: left;
margin: 30px;
font-size: 24px;
color: black;
}
/* Cards Container */
body {
padding: 20px;
}
.HTML, .CSS, .PHP, .JavaScript {
width: 220px;
border: 1px solid #ccc;
padding: 15px;
margin: 10px;
float: left;
box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
border-radius: 5px;
height: 280px;
overflow: hidden;
}
/* Titles inside Cards */
.HTML h1, .CSS h1, .PHP h1, .JavaScript h1 {
color: #008000;
font-size: 20px;
margin-bottom: 5px;
}
.HTML h2, .CSS h2, .PHP h2, .JavaScript h2 {
color: #0000cd;
font-size: 16px;
margin-bottom: 10px;
}
/* Paragraph inside Cards */
.HTML p, .CSS p, .PHP p, .JavaScript p {
font-size: 14px;
color: #333;
text-align: justify;
}
/* Clearfix to fix float issue */
body::after {
content: "";
display: table;
clear: both;
}