News Carousel Full Width

Example


See Kitchen Sink.

Code

HTML

<section class="news">
  <div class="grid-xxl">
    <header>
      <h1 class="contact-head">Recent News</h1>
      <div class="more-button">
        <a href="#" class="more">More News</a>
      </div>
    </header>
    <div class="news-carousel four-up">
      <a class="card" href="#link">
        <img src="https://picsum.photos/id/99/290/152" class="card-image" />
        <div class="card-details">
          <div class="news-overline">6/19/2019</div>
          <h2 class="news-headline">
            CEHHS Alum named Teacher of the Year
          </h2>
          <div class="news-dek">
            Erica Sowders received the Clarenceville Teacher of the ...
          </div>
        </div>
      </a>
      <a class="card" href="#link">
        <img src="https://picsum.photos/id/42/290/152" class="card-image" />
        <div class="card-details">
          <div class="news-overline">6/19/2019</div>
          <h2 class="news-headline">
            Lecturer Amira Shourbaji is the latest UM-Dearborn faculty member to
            land a Fulbright
          </h2>
          <div class="news-dek">
            The English language proficiency instructor is used to helping …
          </div>
        </div>
      </a>
      <a class="card" href="#link">
        <img src="https://picsum.photos/id/1020/290/152" class="card-image" />
        <div class="card-details">
          <div class="news-overline">6/19/2019</div>
          <h2 class="news-headline">
            CEHHS graduate Kori Schmidt received the Chancellor's Medallion
            Award
          </h2>
          <div class="news-dek">
            Kori Schmidt was recognized as Chancellor’s Medallion ...
          </div>
        </div>
      </a>
      <a class="card" href="#link">
        <img src="https://picsum.photos/id/1025/290/152" class="card-image" />
        <div class="card-details">
          <div class="news-overline">6/19/2019</div>
          <h2 class="news-headline">
            CEHHS congratulates Dearborn Public Schools Superintendent
          </h2>
          <div class="news-dek">
            Kori Schmidt was recognized as Chancellor’s Medallion ...
          </div>
        </div>
      </a>
    </div>
  </div>
</section>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

CSS

.news {
  background-color: #e9e9e9;
  padding: 5.625rem 0;
}
@media screen and (max-width: 39.9375em) {
  .news .grid-xxl {
    padding: 0;
  }
}
.news header {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 3.125rem;
  width: 100%;
}
@media screen and (max-width: 39.9375em) {
  .news header {
    display: block;
  }
}
.news header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.23px;
  margin: 0;
  padding-right: 2.5rem;
  text-align: left;
}
@media screen and (max-width: 39.9375em) {
  .news header h1 {
    padding: 0;
    margin: 0 0.9375rem 1rem;
  }
}
.news header .more-button a {
  background: #00274c;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
    0 1px 1px 0 rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
    0 1px 1px 0 rgba(0, 0, 0, 0.14);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: 1.25px;
  text-align: center;
  line-height: 16px;
  padding: 0.5rem 1rem;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
@media screen and (max-width: 39.9375em) {
  .news header .more-button a {
    display: block;
    margin: 0 0.9375rem;
  }
}
.news header .more-button a:hover,
.news header .more-button a:focus {
  -webkit-box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 8px 10px 1px rgba(0, 0, 0, 0.14);
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 8px 10px 1px rgba(0, 0, 0, 0.14);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72