Skip to content

Commit 3a19cab

Browse files
committed
Modify CSS to wrap 2 icons at a time
1 parent d2f2b29 commit 3a19cab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

static/css/training.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@ body.cid-training #get-certified .col-nav a.button {
124124
body.cid-training section.call-to-action .main-section > div.call-to-action > div {
125125
padding: 0 2rem 0 2rem;
126126
}
127+
body.cid-training section.call-to-action .main-section > div.call-to-action div.cta-image {
128+
padding: 0 2rem 0 2rem;
129+
/* Change display to CSS Grid layout with 2 columns that autofill */
130+
display: grid;
131+
grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
132+
}
133+
/* Make the CTA text fill 100% of the viewport */
134+
body.cid-training section.call-to-action .main-section > div.call-to-action > div.cta-text {
135+
width: 100%;
136+
}
137+
138+
/* Resize the div that contains the images so that the images wrap 2 at a time
139+
and have no margin issues */
140+
141+
body.cid-training section.call-to-action .main-section > div.call-to-action {
142+
width: 60%;
143+
margin: auto;
144+
padding-top: 20px;
145+
}
127146
}
128147

129148

0 commit comments

Comments
 (0)