How to close the gap of elements in X axis of the canvas

The elements in the x-axis will fill whatever container they are placed in, so simply resizing the element (and making it smaller) will close the gap. Is this what you're trying to achieve, or am I misunderstanding?