# Resize evenly by taking the available space?

I have 4 rectangles:

How can I make the bottom ones (2,3 and 4) to take all the width provided by Rectangle1 equally?

I.e. rectangles 2, 3 and 4 must have the same size but I'd like to have no spacing in between them, and also I'd like Rectangle2 to start where Rectangle1 starts, and Rectangle4 to end where Rectangle1 ends.

• So are you asking us how to divide by 3, how to measure a distance, how to scale from a point or something else? Apr 1, 2022 at 17:59
• Let me clear this up a bit, see the update. Apr 1, 2022 at 18:11
• Divide the width of first rectangle by 3 and duplicate it 3 times? Apr 1, 2022 at 18:16
• That can work, yes, but is not there any function in Inkscape which doesn't involve an external calculator? :) Apr 1, 2022 at 18:17
• Most design applications actually accept arithmetic functions in input boxes. No inkscape in front of me but try typing /3 in the width input. Apr 1, 2022 at 18:21

## 2 Answers

You can do the arithmetic in the width field in Inkscape.

Duplicate Ctrl+D the long rectangle, click and drag downwards while holding down Ctrl to constrain the move vertically, then type `/3` after the width value to divide by 3. Hit Enter to confirm.

Duplicate the resized piece, and move into position while holding down Ctrl to constrain the move horizontally. Use snapping if you want things to line up. Repeat for the last piece.

An example

For something as simple as this, you don't even need to use arithmetic. Just take advantage of snapping.

• Draw a rectangle with random dimensions.
• Duplicate it two times and snap the three rectangles tightly together.
• Snap the three rectangles to one of the corners of the original rectangle.
• Scale the three rectangles to the same dimensions as the original rectangle.
• Move the three rectangles to the desired position.