Skip to content

Commit 2e1c926

Browse files
author
russom
committed
Read more link display was fixed to stay properly aligned within the article grid layout
1 parent d4f038d commit 2e1c926

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Wireframe/style.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,24 @@ h2 {
3737
}
3838
h3 {
3939
font-size: 1.25em;
40+
margin-top: 0;
41+
margin-bottom: 0px;
42+
}
43+
p {
44+
margin-top: 0;
45+
margin-bottom: 0;
4046
}
4147
body {
4248
background: var(--paper);
4349
color: var(--ink);
4450
font: var(--font);
4551
padding-bottom: 5px; /* Make space for the fixed footer according to the wireframe requirements */
4652
}
53+
a {
54+
padding: var(--space);
55+
border: var(--line);
56+
max-width: fit-content;
57+
}
4758

4859
/* ====== Site Layout ======
4960
Setting the overall rules for page regions
@@ -57,6 +68,7 @@ footer {
5768
position: fixed;
5869
bottom: 0;
5970
left: 0;
71+
padding: 10px;
6072
border-top: 1px solid black;
6173
text-align: center;
6274
width: 100%; /* Make the footer span the entire width of the viewport */
@@ -84,15 +96,15 @@ Keeping things orderly and separate is the key to good, simple CSS.
8496
*/
8597
article {
8698
border: var(--line);
87-
8899
padding-bottom: var(--space);
89100
text-align: left;
90101
display: grid;
91102
grid-template-columns: var(--space) 1fr var(--space);
92103
> * {
93104
grid-column: 2/3;
94105
grid-template-rows: auto auto 1fr auto;
95-
height: 100%;
106+
overflow: hidden;
107+
padding-bottom: 15px;
96108
}
97109
/* The below added lines fixed the image layout which was uneven*/
98110
> img {

0 commit comments

Comments
 (0)