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


decorative

Celebrate our WICKED makeover!

Attention all Ozians! London's iconic Royal Borough of Greenwich has had a WICKED makeover, changing its name to GREENWITCH to celebrate the cinematic spectacular flying into cinemas on 22 November.

Tue 12 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

Disability History Month 2024 @ GSU

Greenwich Students’ Union is proud to be taking part in Disability History Month (DHM), which runs from 14 November to 20 December.

Thu 21 Nov 2024

Apply to be an NUS Delegate

Represent Greenwich Students’ Union at the NUS conference in April! We are electing 6 NUS delegates to represent Greenwich students at the NUS conference in Liverpool. If you’re interested, then sign up before 25 November.

Tue 05 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