Code Snippet Preview



Update: Bootstrap 5 now includes opacity utility classes. Below are custom styles you can use in older versions.

 

Bootstrap 4 does not have any opacity utility classes. You can add this to a custom stylesheet to quickly add the ability to write .opacity-(0-5) to change the opacity of an element.

  • 0 = opacity: 0;
  • 1 = opacity: 0.2;
  • 2 = opacity: 0.4;
  • 3 = opacity: 0.6;
  • 4 = opacity: 0.8;
  • 5 = opacity: 1;

Related resources

  • WordPress vs HubSpot CMS Review
  • 25+ Questions to Ask Before Redesigning Your Business Website
  • 5 Things A Business Should Consider Before a Website Redesign
  • How to Quickly Create a Website for B2B Company
  • HubSpot Custom Modules Marketplace
  • Buy HubSpot Modules in Bulk