Skip to content

Commit 34de10a

Browse files
fix: overlaping with content and parenthesis
1 parent 3c14860 commit 34de10a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

css/member.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@
5555
margin-bottom: 8px;
5656
display: list-item;
5757
position: relative;
58-
padding-right: 100px;
58+
/* reserve extra space on the right for the date so text doesn't overlap */
59+
padding-right: 160px;
5960
}
6061

6162
.education-section li .content,
6263
.professional-careers-section li .content {
63-
display: inline;
64+
display: inline-block; /* behave like inline text but width controllable */
65+
max-width: calc(100%); /* prevent overlap with right-aligned date */
66+
vertical-align: top;
6467
}
6568

6669
.education-section li .date,

0 commit comments

Comments
 (0)