Welcome to Mini Bean’s Second Lesson!

For this lesson, we will cover how we can design a custom callout using HTML and CSS. If you’re still interested, take a look at the rest of the lesson! If not, that’s great too. Come hang out at the Mini Bean and grab a coffee!

Coffee Lessons: Custom Callout

To create a custom callout, we will be using a HTML block. Usually in web builders, you can select a block with the code symbol like in figure 1.

Once we have a custom HTML block down, we can input something like:

<h2 class=”custom-callout”>Callout</h2>

Figure 1

The <h2></h2> tags will create a header 2 element like seen below:

H2 Header

From here, we can edit the CSS for the h2 header. It may differ depending on what web builder or process you are creating your h2 header, but you can edit the CSS through “Custom CSS” in the menu. Once you have found it, you can select your h2 header by selecting the “custom-callout” class:

.custom-callout {

     /* Input Code Here */

}

Next, you can input the CSS code to edit your h2 header to create a custom callout! We won’t go more in-depth into the CSS, but you can try out the code below to use our custom callout yourself!

.custom-callout {
     border: 5px dotted #F0DDC6;
     text-align: center;
     padding: 15px 0 15px 0;
}

Result

Custom Callout

Scroll to Top