Forum Discussion

bbsin's avatar
bbsin
Iron Contributor
Oct 12, 2020

SharePoint Online layout - Pls help to fix it...

Hi

 

Can SharePoint developer fix the following problem

 

I am trying to create a site on SharePoint online, I notice that when I insert a image as header and then input text at the bottom, there's always a gap.   It just don't look like it's one section, how can I remove the gaps?  Attached image

 

Thank you

  • bbsin Result is shown in the image below:

     

    To reduce the distance further, you would need to update the margin top into "-10px".

  • bbsin Hello,

    Here is the code (simplified), to solve this:

    document.getElementsByClassName("ControlZone")[1].style.marginTop = "0px"

     

    NOTE! 

     

    Yours sincerely,
    Aref Halmstrand

  • Rachel_Davis's avatar
    Rachel_Davis
    Steel Contributor

    bbsin Unfortunately, you can't remove the spacing. It is what it is. Once you save/publish the page the gaps should tighten up.

     

    From a UI/UX perspective, the white space between images & text is a GOOD thing and I'm pleased I no longer have to manually figure it in. It helps with readability. Text that is between images can easily get lost as readers skim the page as your eye assumes it's a caption and skips it. 

     

    Modern pages aren't 100% perfect, but IMHO MSFT has done a pretty good job managing the UI/UX aspects for us.

Resources