File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed
Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change 88 < link rel ="stylesheet " type ="text/css " href ="style.css ">
99</ head >
1010< body >
11- < div class ="container ">
11+ < div class ="hero ">
1212 < p > Personal page made for < span id ="add "> </ span > </ p >
1313 </ div >
14+ < div class ="card-container-A ">
15+ < div class ="card-A "> Card A</ div >
16+ < div class ="card-A "> Card B</ div >
17+ < div class ="card-A "> Card C</ div >
18+ < div class ="card-A "> Card D</ div >
19+ </ div >
1420</ body >
1521</ html >
Original file line number Diff line number Diff line change 11: root {
22 --max-width : 1024px ;
3+ --border-color : # 101010 ;
4+ --border-radius : 10px ;
5+ font-family : "tahoma" , sans-serif;
36}
47* , * ::before , * ::after {
58 box-sizing : border-box;
@@ -12,15 +15,35 @@ body {
1215 color : white;
1316 width : 100% ; max-width : var (--max-width );
1417 margin : auto;
15- margin-top : clamp (0px , calc (50vw - 450px ), 200px );
18+ /* margin-top: clamp(0px, calc(50vw - 450px),200px);*/
1619 padding : 10px ;
1720 font-size : 2.5rem ;
1821}
1922
20- .container {
23+ .hero {
2124 border : 1px solid # 101010 ;
2225 padding : 10px 20px ;
2326}
24- .container span {
25- color : darksalmon;
27+ .hero span {color : darksalmon;}
28+
29+
30+
31+ .card-container-A {
32+ --container-A-width : 100% ;
33+ margin-top : 40px ;
34+ border : 1px solid var (--border-color );
35+ display : flex; flex-flow : wrap;
36+ gap : 5px ;
37+ padding : 10px ;
38+ width : var (--container-A-width );
39+ }
40+ .card-A {
41+ flex-grow : 1 ;
42+ font-size : 1.2rem ;
43+ min-width : min (260px , var (--container-A-width ));
44+ /*width: 100%; max-width: 400px;*/
45+ padding : 10px 15px ;
46+ color : white;
47+ background-color : black;
48+ border-radius : var (--border-radius );
2649}
You can’t perform that action at this time.
0 commit comments