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
Scanning electron microscopy of implant nanoscale channels controlling drug release, B) Design of long-acting implant for 2-year uninterrupted anti-HIV and contraceptive drug delivery showing size relative to a penny; (C) Drugamer formulation of the two drugs to stabilize the compounds for over 2 years and to control their release rate and duration together with the nanoscale channels and membranes.

Researchers are developing an implantable device that could prevent pregnancy and HIV for two years

Researchers at the University of Washington and Houston Methodist Hospital Research Institute are collaborating to develop a new type of product called multipurpose prevention technologies (MPTs). 

Illustration of hands holding a phone in front of a bus

Happiness is just "One Bus Away"

Two UW graduate students—one in computer science and one in civil engineering—seeking a better transit experience invented an app that is used by millions across the U.S.

Two students work on their Rube-Goldberg inspired machine

From camp to college

Bringing STEM education to a rural community helps youth get college-ready.

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>