How to add CSS to Gutenberg Blocks (Buttons, Icon Lists, Images & more!)

by | May 20, 2021 | 0 comments

How to add CSS to Gutenberg Blocks (Buttons, Icon Lists, Images & more!)

by | May 20, 2021 | CSS Tips and Tricks | 0 comments



Learn how to CSS for Gutenberg blocks and how to apply custom styles using custom classes and CSS code in WordPress.
⮞ ⮞ Use the video chapters to skip to elements/css you’re interested in styling. ⮜⮜

In this video, we’ll style an entire page of block elements. You’ll make a custom alert box (with icon image), stylish heading, list with colored icon bullets, and stylish button. We’ll also make a unique separator with circular icon, and a callout/CTA box.

CSS Techniques you’ll learn:
* How to add a custom class to Gutenberg blocks
* Targeting blocks by class or element
* Padding, Borders, Margin & Box-shadow
* Adding a background image to a block
* Pseudo-elements ( :before & :after)
* Relative and Absolute positioning
* CSS Counters

——————————————————
Video Chapters
——————————————————
0:00 – Intro
0:18 – What we’re going to build
1:45 – Alert Box with icon
8:48 – List with icon bullets
13:50 – HR separator with centered icon
25:40 – Ordered list with color numbers using css counters
36:16 – Image with box-shadow and frame
39:52 – Button with box-shadow, border and hover effect
47:28 – Group Block with border, padding and background image
1:01:26 – Outro

source

0 Comments

Submit a Comment

What Our Clients Are Saying

North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

Manny, North Burnaby Boxing Club

Dieno Digital Marketing Services
5
2018-04-27T01:06:02+00:00

Manny, North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing...

Dave, JB Consulting

Dieno Digital Marketing Services
5
2018-04-27T01:06:57+00:00

Dave, JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing with him!

Kelicor Logistics

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my...

Colin, Kelicor Logistics Solutions

Dieno Digital Marketing Services
5
2018-04-27T01:07:34+00:00

Colin, Kelicor Logistics Solutions

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my questions and was always prepared to go the extra mile, in order to ensure my website conveyed it's intended message,, And the cherry on top was it was most affordable. Would definitely recommend. Thanks Leland !

McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for...

M, McNeney McNeney Spieker LLP

Dieno Digital Marketing Services
5
2018-04-27T01:08:19+00:00

M, McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for over 3 years now. The knowledge and skills Leland brings to the table has increased our business and streamlined our social media platform. Our requests are always dealt with in a timely manner and we are always given options and alternatives to better reach potential new clients. We highly recommend Dieno Digital to increase your life social media presence.
5
4
Dieno Digital Marketing Services
[newsletter_form]
<div class="tnp tnp-subscription"> <form method="post" action="https://www.dienodigital.com/?na=s"> <input type="hidden" name="nlang" value=""><div class="tnp-field tnp-field-firstname"><label for="tnp-name">First name or full name</label> <input class="tnp-name" type="text" name="nn" value=""></div> <div class="tnp-field tnp-field-email"><label for="tnp-email">Email</label> <input class="tnp-email" type="email" name="ne" value="" required></div> <div class="tnp-field tnp-field-button"><input class="tnp-submit" type="submit" value="Subscribe" > </div> </form> </div>