Skip to main content

Applying rounded corners to your widgets and buttons using Custom CSS

  • July 23, 2025
  • 6 replies
  • 315 views

pierre.andignac
Docebian
Forum|alt.badge.img

Hello Community members!

I'd like to share one of my favorite code snippets with you, which can enhance the learning experience with a modern touch. By incorporating the code below, you can turn your widgets into rounded objects, similar to buttons, giving your platform a more contemporary look and feel."

/* ****************** */
/* Rounded Experience */
/* ****************** */

/* Sign-in pop-up window block */
.external-simple-content {
border-radius: 20px;
overflow: hidden;
z-index: 1; /* To ensure it stacks above the background */
}

/* Sign-in pop-up window */
.external-simple-signin.ng-star-inserted,
/* Cards in Built-in pages (e.g. My catalogs, My Courses and Learning Plans, etc) */
.ui-card-wrapper,
/* Course Panel Thumbnails within Learning Plans */
.ui-card-header,
/* Enrollment Types badges (e.g. Mandatory, optional, etc) */
.lmn-badge-status-theme-info,
/* Locked courses */
dcb-sh-content-thumbnail {
border-radius: 10px !important;
overflow: hidden; /* ensures content respects the rounded corners */
}

/* Badges status (Not Started, In Progress, Completed) */
.ui-badge-status,
/* Buttons */
button {
border-radius: 100px !important;
overflow: hidden; /* ensures child elements also follow the rounded shape */
}

/* Widgets in widgets pages */
.pages-widget-page .single-widget *:not(.title):not(.ui-carousel-title):not(.ui-text-link):not(.ui-card-title):not(.ui-typography-heading-5):not(.subtitle) {
border-radius: 10px;
}

 

Without the rounded experience : 

 

With the rounded experience:

 

Of course you can increase the border radius if you like to accentuate even further the rounded experience.

Hope it helps!

Similar articles:

6 replies

jennadionn
Helper I
Forum|alt.badge.img
  • Helper I
  • September 18, 2025

Very cool, thank you! 


This is great!! I just applied it in our sandbox!! Thank you for sharing. 


pierre.andignac
Docebian
Forum|alt.badge.img

You welcome :)


  • Newcomer
  • March 23, 2026

This is great! Thank you!

Is there a way to remove the roundness within the boxes? I would like images and titles to not have rounded corners at the bottom.


pierre.andignac
Docebian
Forum|alt.badge.img

This is great! Thank you!

Is there a way to remove the roundness within the boxes? I would like images and titles to not have rounded corners at the bottom.

Hi ​@jtorres , yes you can do it by modifying this bit:

 

.pages-widget-page .single-widget *:not(.title):not(.ui-carousel-title):not(.ui-text-link):not(.ui-card-title):not(.ui-typography-heading-5):not(.subtitle) {
border-radius: 10px;
}

and updating to: 

.pages-widget-page .single-widget *:not(.title):not(.ui-carousel-title):not(.ui-text-link):not(.ui-card-title):not(.ui-typography-heading-5):not(.subtitle) {
border-radius: 10px 10px 0 0;
}

That should affect the corner radius only to your top corners.


  • Newcomer
  • March 26, 2026

Thanks for your help! I tried the update, and while it adjusted some areas, it also removed the rounded corners at the bottom of the containers and kept the rounded corners on the images. Is there a way to apply the change only to the outer edges of the containers? Please see the attached.