Use our Hero component in Rocket CSS to add page banners to your website.
The Rocket CSS hero component is used to create useful introductory page banners used for highlighting important information. You can extend the hero component if required and utilise the Rocket CSS grid system as well. To get started, simply add a .hero
wrapper and a .hero-body
child element.
By default our hero component doesn't come with much styling to child content. This makes it great for styling with your own classes.
You can utilise our colour classes and spacing classes for child elements.
Rocket CSS comes with a few powerful helper classes for changing the size of your hero component. Simply add one of the following Rocket CSS classes to a .hero
component:
.hero-small
for a small hero component.
.hero-large
for a large hero component.
.hero-extra-large
for a extra hero component.
Here's a small hero
Here's a large hero
Here's a extra large hero