Skip to main content

Related content block

The related content block is used to highlight related content such as news, stories or research. Multiple options are available.

New!

Three-across

This new Drupal 2.0 block can be used with or without a background. We recommend using the dedicated background image for this section to maintain consistency across the site. It is available in every site's media library named related-content-bg.jpg.

Click on the "gear" icon in the editor to add your keywords, research terms, tags, etc to filter the feed.

abstract gold textured bg
A doctoral student takes a sample from a tube

Water disinfection can help prevent the spread of antibiotic resistant bacteria, but what about their genes?

A team of UW civil and environmental engineering researchers tested how well current water and wastewater disinfection methods affect antibiotic resistance genes in bacterial DNA. While these methods work well to deter bacterial growth, they had varied success in either degrading or deactivating a representative antibiotic resistance gene.

Students posing behind a check

Students Impress at 2019 Alaska Airlines Environmental Innovation Challenge

Mechanical Engineering's MOtiF Materials team won the grand prize at the 2019 Alaska Airlines Environmental Innovation Challenge (EIC). ElectroSolar Oxygen (Chemical Engineering, Business) took home the Clean Energy Prize, while AeroSpec (Mechanical Engineering, Chemical Engineering, Electrical & Computer Engineering, Chemistry) and NanoPrint (Business, Bioresource Science and Engineering, Mechanical Engineering) won the Judges Also Really Liked (JARL) award.

Shwetak Patel

UW virtuoso of mobile sensing technology receives ACM Prize in Computing

Shwetak Patel, professor of Computer Science and Engineering and Electrical and Computer Engineering, was awarded the 2018 ACM Prize in Computing. He has created a system for monitoring energy and health that is affordable and accurate enough for widespread use.

News or stories versions

Each non-Drupal 2.0 option has a version for News pages and a version for Story pages. News pages are used for all news stories and some featured stories. Story pages are used for media-heavy featured stories, known as "immersive stories," and other content that contains a lot of images and media.  

Single item vertical

News and Page content type version

This block floats to the left or right of other page elements, allowing text to wrap around it.

Live example

example

Code

This code floats the block to the left of page content. To float right, change float-sm-left to float-sm-right.

	
<div class="mb-3 mr-sm-3 float-sm-left col-lg-4 col-md-6 p-0">
        <div class="p-3 bg-info" style="border-top: 30px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-border.png) 30">
                <h3 class="mt-0">Related story</h3>
                <div class="w-25" style="border-top: 6px solid #85754d">&nbsp;</div>
                <img alt="#" class="mb-2" loading="lazy" src="img.jpg">
                <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
                <p>Body text goes here.</p>
        </div>
</div>

Story and Layout content type

This block goes in the sidebar, to the right of the main content. Text will not wrap around it.

Live example

example

Code

Place this code in the "Aside Text" within a "Copy Block with Aside" block. The CSS only needs to be on the page once; it's not needed if it's already in another block.

	
<style type="text/css">
        .uwcoe-stories-aside {padding: 0;}
</style>

<div class="p-3 bg-info" style="border-top: 30px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-border.png) 30">
        <h3 class="mt-0">Related story</h3>
        <div class="w-25" style="border-top: 6px solid #85754d">&nbsp;</div>
        <img alt="alt text" class="mb-2" loading="lazy" src="img.jpg" />
        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
        <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
        <p>Body text goes here.</p>
</div>

Two items vertical

News and Page content type version

This block floats to the left or right of other page elements, allowing text to wrap around it.

Live example

example

Code

This code floats the block to the right of page content. To float left, change float-sm-right to float-sm-left.

	
<div class="mb-3 float-sm-right col-lg-4 col-md-6 p-0">
        <div class="px-4 bg-white">
                <h3 class="mt-0">Related story</h3>
                <div class="w-25" style="border-top: 6px solid #85754d">&nbsp;</div>
                <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
                <p class="mb-4">Body text goes here.</p>
                <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
                <p>Body text goes here.</p>
        </div>
</div>

Story and Layout content type

This block goes in the sidebar, to the right of the main content. Text will not wrap around it.

Live example

example

Code

Place this code in the "Aside Text" within a "Copy Block with Aside" block. The CSS only needs to be on the page once; it's not needed if it's already in another block.

	<style type="text/css">
        .uwcoe-stories-aside {padding: 0;}
</style>
<div class="p-3 bg-white">
        <h3 class="mt-0">Related story</h3>
        <div class="w-25" style="border-top: 6px solid #85754d">&nbsp;</div>
        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
        <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
        <p class="mb-4">Body text goes here.</p>
        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
        <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
        <p>Body text goes here.</p>
</div>

Two items horizontal

News and Page content type version

This block spans the width of the page and goes between paragraphs or sections.

Live example

example

Code

	
<div class="p-4 my-3 bg-info" style="border-right: 40px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-vertical.png) 40">
        <h3 class="mt-0">Related story</h3>
        <div class="col-1" style="border-top: 6px solid #85754d">&nbsp;</div>
        <div class="row">
                <div class="col-md-6">
                        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                        <h4 class="h3 mt-0"><a href="#">Hereline goes here</a></h4>
                        <p>Body text goes here.</p>
                </div>
                <div class="col-md-6">
                        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                        <h4 class="h3 mt-0"><a href="#">Hereline goes here</a></h4>
                        <p>Body text goes here.</p>
                </div>
        </div>
</div>

Story and Layout content type

This block is slightly wider than body text and goes between paragraphs or sections.

example

Code

Place this code in a Custom Block.

	
<div class="p-5 container my-5 bg-info" style="border-right: 40px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-vertical.png) 40">
        <h3 class="mt-0">Related story</h3>
        <div class="col-1" style="border-top: 6px solid #85754d">&nbsp;</div>
        <div class="row">
                <div class="col-sm-6">
                        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                        <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
                        <p>Body text goes here.</p>
                </div>
                <div class="col-sm-6">
                        <p class="small text-dark font-weight-bold my-2 text-uppercase">Tag</p>
                        <h4 class="h3 mt-0"><a href="#">Headline goes here</a></h4>
                        <p>Body text goes here.</p>
                </div>
        </div>
</div>

News and Page content type version

This block floats to the left or right of other page elements, allowing text to wrap around it.

example

Code

This code floats the block to the right of page content. To float left, change float-sm-right to float-sm-left.

	
<div class="my-3 mx-sm-3 float-sm-right col-lg-4 col-md-6 p-0">
        <div class="p-3 bg-info" style="border-top: 30px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-border.png) 30">
                <h3 class="h4 mt-0 text-uppercase text-center">Marine energy at UW</h3>
                <div class="row mb-3">
                        <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                        <div class="col-10 px-1"><strong><a href="https://www.washington.edu/news/2018/12/13/new-underwater-sensors-for-sea-life/">Underwater sensors for monitoring sea life (and where to find them)</a></strong></div>
                </div>
                <div class="row mb-3">
                        <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                        <div class="col-10 px-1"><strong><a href="https://magazine.washington.edu/feature/converting-ocean-waves-into-electricity-poses-challenges-and-promise/">Converting ocean waves into electricity poses challenges—and promise</a></strong></div>
                </div>
                <div class="row mb-3">
                        <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                        <div class="col-10 px-1"><strong><a href="https://www.aa.washington.edu/news/article/2020-04-29/aerospace-turns-tide-marine-energy">Aerospace turns the tide on marine energy</a></strong></div>
                </div>

        </div>
</div>

Story and Layout content type

This block goes in the sidebar, to the right of the main content. Text will not wrap around it.

example

Code

Place this code in the "Aside Text" within a "Copy Block with Aside" block. The CSS only needs to be on the page once; it's not needed if it's already in another block.

	
		<style type="text/css">
        .uwcoe-stories-aside {padding: 0;}
</style>
<div class="p-3 bg-info" style="border-top: 30px solid transparent; border-image: url(https://www.engr.washington.edu/sites/engr/files/imgs/diagonal-lines-border.png) 30">
        <h3 class="h4 mt-0 text-uppercase text-center">Headline goes here</h3>
        <div class="row mb-3">
                <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                <div class="col-10 px-1"><strong><a href="#">Link text</a></strong></div>
        </div>
        <div class="row mb-3">
                <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                <div class="col-10 px-1"><strong><a href="#">Link text</a></strong></div>
        </div>
        <div class="row mb-3">
                <div class="col-1 px-3"><i class="fal fa-long-arrow-right text-primary">&nbsp;</i></div>
                <div class="col-10 px-1"><strong><a href="#">Link text</a></strong></div>
        </div>
</div>