# utils/dom/getborderwidths

module

<a id="interfaces">

## Interfaces

<a id="interface-BorderWidths">

### `BorderWidths`

<a id="functions">

## Functions

<a id="function-getBorderWidths">

### `getBorderWidths( element ) → BorderWidths`

Returns an object containing CSS border widths of a specified HTML element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/dom/getborderwidths.ts#L17)

#### Parameters

* `element: HTMLElement`

  An element which has CSS borders.

#### Returns

* `BorderWidths`

  An object containing `top`, `left`, `right` and `bottom` properties with numerical values of the `border-[top,left,right,bottom]-width` CSS styles.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
