Best Answer

Using CSS to round course icons

  • 16 May 2023
  • 5 replies
  • 222 views

Userlevel 1

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

icon

Best answer by StefanW 13 June 2023, 14:04

View original

5 replies

Userlevel 4
Badge +2

@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?

Userlevel 1

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 

Userlevel 4
Badge +2

@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.

Userlevel 3

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.

 

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