--- title: "ZingGrid Web Component: `` | Docs" description: "View our in depth tutorial covering the web component `` tag and the associated features for the JavaScript grid." url: https://www.zinggrid.com/docs/api/tags/zg-foot --- ```text experiment_id: web-retrieval-v1 fixture_id: /docs/api/tags/zg-foot.md mode: provenance representation: markdown origin_response_id: 789625729a44f6dc6f113ae242413b39 version: 2026-10-21 version_created_at_utc: 2026-10-21T20:42:35.632Z version_nonce: 2b9f3d609074f8fff97b2f0d78716230 generated_at_utc: 2026-10-31T01:14:11.670Z response_nonce: d611e05bf63e43d8b5f3fab3227a564e ``` # `` [Interactive Storybook Playground](https://storybook.zinggrid.com/?path=/docs/components-zg-foot--docs) The `` tag contains the foot cells (``) of the data grid specified via the foot-cell attribute found on `` tags. The tag roughly corresponds to the idea of the `` tag used in HTML tables. The `` tag is generated by the library and **should not be placed in a grid manually by a user**. The footer cell is styleable via CSS variables or the `zg-foot` CSS selector. ![Image of the DOM relationship for the zg-foot web component tag](https://storage.googleapis.com/zinggrid-pwa.appspot.com/components/v2/zg-foot-web-component-dom.png "Image of the DOM relationship for the zg-foot web component tag") | Component | Relationship | Type | Ancestor | | --- | --- | --- | --- | | [ZGTable](https://www.zinggrid.com/docs/api/tags/zg-table) | Parent | Generated | n/a | | [ZGRow](https://www.zinggrid.com/docs/api/tags/zg-row) | Child | Generated | n/a | #### Related Web Components - [``](https://www.zinggrid.com/docs/api/tags/zg-cell/) - [``](https://www.zinggrid.com/docs/api/tags/zg-column/) ## Usage The `` element is a generated element added to `` when the `selector` attribute is defined. ```html ``` ## Attributes There are no attributes available for the `` web component. ## CSS Variables `` can be styled with CSS variables, like so: ```css :root { --zg-foot-border-top: 1px solid red; } ``` Below is a list of all the associated `--zg-foot` CSS variables. Check out the [full list of CSS variables](https://www.zinggrid.com/docs/api/css-variables/reference/) or our [Styling Basics guide](https://www.zinggrid.com/docs/getting-started/styling-basics/) to learn more about styling the grid. | Name | Default | Description | Demo | | --- | --- | --- | --- | | `--zg-foot-background` | Browser's default value | Styles the background of grid foot | [Example code](https://app.zingsoft.com/demos/embed/5NW1UUJB) | | `--zg-foot-border` | 0 | Styles the border of grid foot | [Example code](https://app.zingsoft.com/demos/embed/GJKYV9E6) | | `--zg-foot-border-bottom` | var(--zg-foot-border, 0) | Styles the bottom border of grid foot | [Example code](https://app.zingsoft.com/demos/embed/FRJXV4YB) | | `--zg-foot-border-left` | var(--zg-foot-border, 0) | Styles the left border of grid foot | [Example code](https://app.zingsoft.com/demos/embed/VYNWYDXA) | | `--zg-foot-border-right` | var(--zg-foot-border, 0) | Styles the right border of grid foot | [Example code](https://app.zingsoft.com/demos/embed/4YL86H63) | | `--zg-foot-border-top` | var(--zg-foot-border, 0) | Styles the top border of grid foot | [Example code](https://app.zingsoft.com/demos/embed/906SOMMP) | | `--zg-foot-padding` | 0 | Sets the padding of grid foot | [Example code](https://app.zingsoft.com/demos/embed/XA3FXCSI) | ## CSS Selector `` can be styled by common CSS selectors, like so: ```css zg-foot { border-top: 1px solid red; } ``` ## Slots There are no slots available for the `` web component.