white space in SharePoint

Anonymous
2022-06-07T05:13:35.21+00:00

208846-whitespaces.jpg

How to remove the white spaces on SharePoint Online Modern page. Are there any best practices around it?

Thanks
Aniruddha

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Answer accepted by question author
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-06-08T05:47:54.757+00:00

    Hi @Anonymous ,

    The default web part in the page cannot be styled through CSS, if you are using a custom web part, you could adjust the page layout through SPFx. SharePoint Framework (SPFx) is a page and web part model that you could use to build and page layout custom web parts.
    Reference: Overview of the SharePoint Framework
    Build your first SharePoint Framework Extension


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-06-08T07:00:04.607+00:00

    @Xuyan Ding - MSFT

    We are using a combination of OOTB web and custom web parts. Is there no option to play with the CSS. I know there is a risk of the element changing.

    Thanks for your response.

    Thanks
    Aniruddha

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.