Cards and alert boxes

Cards and alert boxes are really useful for making your content stand out.

staff training
No ratings yet. Log in to rate.

Why use alert boxes?

If there's a key piece of information that could do with a bit of extra attention, an alert box is a great way of doing that.

Alert boxes look like this

Each alert box has room for a heading and some extra content. But don't go too wild with them - use them sparingly or they'll lose their impact.

Get the code

To put in an alert box, copy and paste the code below into the Source view of your article's content.


<div class="alert">
	<h2>Lorem ipsum</h2>
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>

Why use cards?

These are more subtle and better for organising information on a page.

Cards look like this

Each card has room for a heading and some extra content. But don't go too wild with them - use them sparingly or they'll lose their impact.

Get the code

To put in a card, copy and paste the code below into the Source view of your article's content.


<div class="card">
	<h2>Lorem ipsum</h2>
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>

You can also pop them in columns

Column one

Column two

Get the code

To put in multiple cards in two columns, copy and paste the code below into the Source view of your article's content.


<div class="cards-container">
	<div class="card">
		<h2>Lorem ipsum</h2>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
	</div>
	<div class="card">
		<h2>Lorem ipsum</h2>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
	</div>
</div>

Comments

 

Enable Recite Me accessibility tools

 

Other news


Wrapping up Disability History Month 2024 at GSU

As Disability History Month comes to a close, we’ve compiled five simple, actionable ways you can be an effective ally and be inclusive of disabled friends, students, and colleagues – even after the month is over.

Tue 17 Dec 2024

Introducing your 2024/25 Liberation Chairs

At Greenwich Students’ Union (GSU), we are proud to introduce the eight Liberation Chairs for this academic year. Elected by you, these roles are vital in ensuring that every student feels represented, valued, and supported during their time at the University of Greenwich.

Mon 09 Dec 2024

Reclaiming Narratives - Episode 2

Reclaiming Narratives - our Black History Month podcast series where we explore and amplify under represented stories, voices and experience within the black community.

Tue 26 Nov 2024

Insight: How will the tuition fee changes and the Autumn Budget impact students?

The recently elected Labour Government have announced their first budget, as well as increases to tuition fees and maintenance loans.

What are the most important changes and how will they affect students?

Mon 11 Nov 2024

Reclaiming Narratives

Reclaiming Narratives - our Black History Month podcast series where we explore and amplify under represented stories, voices and experience within the black community.

Mon 04 Nov 2024