I need to make several diagrams with many precisely-size, consecutive, bordered boxes. I'm snapping all the edges of my boxes, but box strokes are inlaid; it looks like snapping the edge to the grid determines the maximum extent of the box. The side-effect is that when I put boxes next to one another on the grid borders appear doubled.

Here's an example of what I'm talking about:

What's the best work-around for this? I've come up with a few ways to cope, but most of them involve making bizarre sized boxes that are hard to color fill.

  • Not entirely sure what the problem is here. Are you trying to make the borders look like the ones between "Hdr" and "A", or the one between "A" and the blank box? If the latter, have you tried using the node tool to drag the handles to the grid? – naught101 Jul 12 '13 at 6:04
  • I want the border between Hdr and A to be the width that the right side of A is. Dragging the handles to the grid doesn't solve it because the border is inset on the shape then. – rstutsman Jul 21 '13 at 20:00

The way Inkscape snaps stroked objects to grid has always felt a little inconsistent to me. Perhaps there is a logic to it, but I'm just not getting it.

Anyway, a simple workaround is to temporarily remove the stroke from your boxes, e.g. by setting their stroke color to "none", and then dragging their corners so that they lie on grid points:

Image 1

Then just add back the strokes:

Image 2

  • A pain, but exactly what I was looking for. Thanks so much. – rstutsman Jul 21 '13 at 20:45

From what I understand, you can:

  1. Overlap the boxes so that the edges are overlapping and are therefore "merged"

  2. Draw custom boxes, e.g. draw an outer box with lines in between or smaller boxes with 3-sides

  3. Related to #2 - draw a box for the colour, and a box for the stroke. The box for the colour will have no stroke, and the box for the outline has no fill.


Have you tried simply disabling the grid? When I snap two boxes together in Inkscape, it appears as a single line.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.