Quick guide for creating borders using transparency
There are many ways to create borders around different objects in Inkscape. Potentially the 'easiest' is a sort of cheat if you will. We are going to use the rectangle tool and play with transparency to get what we want. Here is a step by step to follow along.
-
import your object (graph, figure, table, text, โฆ) into Inkscape:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
-
create a box around the object you want to give a border, we use the rectangle tool (you can draw over top of the thing you want to put a border around, we'll tidy up later):
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
-
we can now create a border around our box/rectangle using the stroke function:
-
open 'Fill and Stroke' menu:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
-
click on the 'Stroke paint' option and then 'Flat colour', you should see a black border appear (feel free to play with colours here):
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
-
the 'Stroke style' button opens a menu where you can edit how the line looks. By changing the 'width' option you change the tickness of the border:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
-
you can change the colour and size of the stroke using the stroke menu as we have just seen above. Play around and get the look that you are after.
-
once happy with the border/stroke we can remove the fill in the box/rectangle making the shape transparent but retaining the border:
- we now have a 'border' that can be positioned and resized around the object that we want to give the border:
- I used the 'Align and distribute' menu to center the border around my figure:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
- to finish off we can select both the border and the object and 'group' them together, meaning that they will move and resize as one object:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
The final product:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
That's it, pretty straight forward and effective.