The .card-columns class creates a masonry-like grid of cards. The layout will automatically adjust as you delete or insert cards. If you don't want the default bootstrap colors (primary, alert, warning etc.) you can change it by inserting a background color with the style tag, just like I did with the red color in the last card. You can also delete or copy the "link" in the first card. Here is the link to the html code in a text file: Code
Note: The cards are displayed vertically on small screens (less than 576px).
Some text inside the first card with a link:
Click a linkSome text inside the second card
Some text inside the third card and when you write more text it looks like this: so the rest of the cards keep their size
Some text inside the fourth card
Some text inside the fifth card
Some text inside the sixth card
Some text inside the seventh card which is a little bit longer than the card before and the card after.
Custom background color and some text inside the eighth card
The .card-deck class creates a grid of cards that are of equal height and width. The layout will automatically adjust as you insert more cards.
Here is the link to the html code in a text file: Code
Note: The cards are displayed vertically on small screens (less than 576px).
Some text inside the first card
even more text
to make it a little bit longer
Some text inside the second card
Some text inside the third card
Click a linkSome custom color and some text inside the fourth card
The .card-group class is similar to .card-deck. The only difference is that the .card-group class removes left and right margins between each card. Note: The cards are displayed vertically on small screens (less than 576px), WITH top and bottom margin. Here is the html code in a text file: Code
Some text inside the first card
Click a linkSome text inside the second card
Some text inside the third card
Some text inside the fourth card with a custom background color
A card deck with an image and a text (with links). Be sure to exchange my picture here with your own in the code ( example for the first card: deck_flower.jpg). Here is the code in a text file: Code
If you need the pictures as well, here is the link: Pictures
Photo by Cristina Gottardi on Unsplash
This is a longer card with supporting text below as a natural lead-in to additional content.
A card deck with a text on an image. I changed the opacity of the background pictures with an image editing software (easier than css :-)) Be sure to exchange my picture here with your own in the code ( example for the first card: deck_flower_trans.jpg) Here is the code in a text file: Code
If you need the pictures as well, here is the link: Pictures
If you need to make an nice avatar for your anologue or digital materials, you can use this code with any picture you like. Add the css file in a "label" resource . Be sure to switch the editor to "unformatted text" in your moodle settings before you do that. After pasting the css code you can switch back to the standard editor. In the css you can also change the size of the avatar and the "roundness" of the corners.
Headings for structuring the sections of your moodle course. Just grab the code and play around with border-radius and box-shadow and the rgb colour. With the <div class="col-sm-6> you set the size to half the page. Boostrap devides a container into 12 columns. So by changing the number after sm- you can increase or decrease the length of the heading. The orange one is devided into 10 and 2 (for the icon). The green one in 6 and the blue one 8. You must substitute my "avatar icon" in the orange heading (avatar2.png)
Get the orange code
Get the green code
Get the blue code