Border

Control the border width of an element.

border defines the thickness of the boundary of the box.

Example

Loading Preview…

Quick Notes

  • border is a Rect containing left, right, top, bottom.
  • Taffy only calculates the space for the border; rendering the actual border is up to your rendering engine.

Next Steps

© 2026 ByteLand Technology Limited