Skip to content

Commit 4117384

Browse files
committed
updated the css color and sizing
1 parent cb3e300 commit 4117384

2 files changed

Lines changed: 29 additions & 6 deletions

File tree

Wireframe/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>Workflow</h1>
2020
<main>
2121
<div class="firstrow">
2222
<article>
23-
<img src="Readme.png" alt="Readme file example" />
23+
<img src="Readme.png" alt="Readme file example" id="readmeimg" />
2424
<h2>README files</h2>
2525
<p>
2626
A README file explains a project to other developers and

Wireframe/style.css

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ body {
1414
color: var(--ink);
1515
font: var(--font);
1616
display: block;
17-
margin: 10px;
17+
margin: 0 auto;
18+
background-color: rgb(213, 230, 224);
19+
max-width: 1200px;
1820
}
1921
h1{
22+
font-size: 90px;
2023
text-align: center;
24+
color: rgb(47, 16, 77);
2125
padding: var(--space);
2226
}
2327
h2, p{
2428
margin: var(--space);
2529
}
26-
main {
27-
max-width: 900px;
28-
margin: 0 auto calc(var(--space) * 4) auto;
29-
}
30+
31+
3032

3133
a {
3234
display: block;
@@ -35,6 +37,9 @@ a {
3537
border: var(--line);
3638
max-width: fit-content;
3739
border-radius: 5px;
40+
background-color: rgb(221, 149, 191);
41+
color: black;
42+
text-decoration: none;
3843
}
3944
img,
4045
svg {
@@ -56,13 +61,31 @@ article {
5661
padding-bottom: var(--space);
5762
text-align: left;
5863
gap: 20px;
64+
background-color: rgb(233, 210, 243);
5965
}
6066
.firstrow {
6167
display: grid;
6268
grid-template-columns: 1fr;
69+
padding: 0 0 20px;
70+
6371
}
6472
.secondrow {
6573
display: grid;
6674
grid-template-columns: 1fr 1fr;
6775
gap: 20px;
76+
}
77+
#readmeimg{
78+
display: block;
79+
margin: 0 auto;
80+
width: 500px;
81+
}
82+
@media (max-width: 800px){
83+
.firstrow, .secondrow{
84+
display: grid;
85+
grid-template-columns: 1fr;
86+
gap: 20px;
87+
}
88+
#readmeimg{
89+
width: 100%;
90+
}
6891
}

0 commit comments

Comments
 (0)