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

Brass Contributor

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

SP gaps.jpg

5 Replies

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

@bbsin Hello,

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

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

 

NOTE! 

 

Yours sincerely,
Aref Halmstrand

@bbsin Result is shown in the image below:

ArefHalmstrand_0-1602543149420.png

 

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

@bbsin You are welcome,

Please mark as best reply if this helped you. 

Yours sincerely,
Aref Halmstrand