Margins around centered element in header not squeezed

Got it! :slight_smile: So this is very confusing but when you have a left fixed-margin element, a centered element, and a right fixed-margin element, the margins between those elements will not be squeezed beyond their original width (their original width is the size that they are in the UI builder).

Bubble will only begin to shrink the margins after the elements break to the next line, as shown when clicking on the centered element and selecting “Explain Box Margins”:

As a workaround, you can place transparent shape elements between those elements (almost like ‘spacers’), in place of the margins, and set their minimum width to something very small (e.g., 1%). As the page decreases in size, those elements will shrink and it will look as if the margins are decreasing.

In other cases when you only have an element on the left (set to fixed-margin left), and an element on the right (set to fixed-margin right), without a centered element in the middle, the single margin between those elements will shrink. However, because of the centered element here, the margins will not shrink beyond their original width on the first line. Please let me know if I can clarify anything or if you have any questions!