Styling modern web parts?

Iron Contributor

Hi,

 

I would like to know how can I style web parts in the modern SharePoint.

I have a page with 3 Library webparts one each the other and doesn't look nice:

 

printscreen.png

 

How can I create a borders or something like that without affecting other web parts? Is there some special class attached to this webpart that I can use in an extension (css)?

 

Best regards

Americo

3 Replies
AFAIK, you cannot do this in default modern WebParts
Hi Américo

As mentioned by Juan on the previous reply, CSS overrides are not supported.
You can try to achieve a better result using the OOB divider web parts or you can try to create a custom SPFx web part with the styles that you need in case you feel this is required. If so, look at the PnP reusable control for lists as it will give you a similar look and feel.

Joel

thanks to both!

 

I will take a look to the PNP way 

 

Best regards

Americo