Edit this page

border Object

The border of the barcode area.

Example - set the border of the barcode

<div id="barcode"></div>
  width: 300,
  border: {
    width: 2,
    dashType: "solid",
    color: "black"

border.color String (default: "black")

The color of the border. Any valid CSS color string will work here, including hex and rgb.

border.dashType String (default: "solid")

The dash type of the border.

border.width Number (default: 0)

The width of the border.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article