Skip to content

Commit 48904f7

Browse files
committed
CSS Cards added
1 parent db01681 commit 48904f7

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This is WIP repo and less jazzy UI (I know it should be jazzy , as we are talkin
2424
- :white_check_mark: Alerts & Notification
2525
- :white_check_mark: Tags
2626
- :white_check_mark: List
27+
- :white_check_mark: Card
2728
- Navigation
2829
- Layouts
2930
- Gallery

css-cards/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!Doctype html>
2+
<head>
3+
<title>CSS Cards</title>
4+
<link rel="stylesheet" type="text/css" href="style.css" />
5+
</head>
6+
<body>
7+
<h1>CSS Cards</h1>
8+
<div id="container">
9+
<div class="card-container margin-around">
10+
<p>This is the title</p>
11+
</div>
12+
<div class="card-container margin-around">
13+
<p>This is the title</p>
14+
</div>
15+
</div>
16+
</body>
17+
</html>

css-cards/style.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* Minimum Reset CSS */
2+
* {
3+
margin: 0;
4+
padding: 0;
5+
}
6+
7+
body {
8+
font-family: Arial, Helvetica, sans-serif;
9+
font-size: 1rem;
10+
color: black;
11+
box-sizing: border-box;
12+
}
13+
14+
/* Global CSS */
15+
16+
#container {
17+
--padding-global: 10px;
18+
width: calc(780px - var(--padding-global) * 2);
19+
margin: 20px auto;
20+
padding: 10px;
21+
display: flex;
22+
}
23+
24+
h1 {
25+
text-align: center;
26+
margin-bottom: 40px;
27+
color: #000;
28+
}
29+
30+
.margin-around {
31+
margin: 10px;
32+
}
33+
34+
/* Example CSS */
35+
.card-container {
36+
width: 200px;
37+
height: 200px;
38+
background: #fff;
39+
box-shadow: 2px 2px 3px #ccc;
40+
padding: 20px;
41+
}
42+
43+
.card-container p {
44+
line-height: 21px;
45+
}

0 commit comments

Comments
 (0)