Skip to main content
Best Answer

Using CSS to round course icons


Hi all, 

Complete CSS beginner over here but I’m loving reading all the posts about how to customise your platform using CSS. I’ve rounded all the edges of our widgets which looks awesome and now I’m looking for how I can round the edges of the course icons (screenshot of what I mean attached)?! I know it’s possible but I can’t quite work out how to do it. Could someone help? 

 

Thanks

Sarah

Best answer by StefanW

Hi everyone,

this seems to do what you’re looking for:

/* Content Cards Rounded Corners */
dcb-ui-card .ui-card-wrapper, ui-card .ui-card-wrapper {
    border-radius: 10px;
}
dcb-ui-content-image.ui-content-image-size-full, ui-content-image.ui-content-image-size-full {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

You might want to adjust the corner radius though if it’s too rounded for you.

 

View original
Did this post help you find an answer to your question?

5 replies

Forum|alt.badge.img+3

@sparker It looks like you forgot to attach the screenshot. Could you please send the screenshot so that we can take a look at it?


  • Author
  • Novice I
  • 1 reply
  • May 17, 2023

Ahh my mistake. Screenshots attached. The course icons are the ones I want to make rounded as per the rounded widgets screenshot. Thank you so much 


Forum|alt.badge.img+3

@sparker Thank you for sharing the screenshots. I attempted to use CSS to round the course cards, but it seems to only round the bottom edges and not the upper portion where the thumbnail is displayed.


Forum|alt.badge.img
  • Helper III
  • 61 replies
  • Answer
  • June 13, 2023

Hi everyone,

this seems to do what you’re looking for:

/* Content Cards Rounded Corners */
dcb-ui-card .ui-card-wrapper, ui-card .ui-card-wrapper {
    border-radius: 10px;
}
dcb-ui-content-image.ui-content-image-size-full, ui-content-image.ui-content-image-size-full {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

You might want to adjust the corner radius though if it’s too rounded for you.

 


  • Novice III
  • 9 replies
  • June 15, 2023

Could someone help me to move the gear Icon? I am new at testing CSS and I would like to center my gear Icon as it is place very high. Do you know how to? 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings