# Elementname: `Box`

CSS name: box

## Description

Create a rectangular colored area. The area must fit the grid cells.

Allowed attributes: backgroundcolor, bleed, class, height, id, width

Child elements: (none)

Parent elements: Frame, PlaceObject, Td, Transformation

### Attributes

backgroundcolor (text, optional, CSS property: background-color)

  Color of the box.

width (number or length)

  Width of the box in grid cells or in absolute values.

class (text, optional)

  CSS class for this box.

backgroundcolor (text, optional, CSS property: background-color)

  Color of the box.

height (number or length)

  Height of the box in grid cells.

id (text, optional)

  CSS id for this box.

## Example

    <DefineColor name="green" model="cmyk" c="22" m="0" y="55" k="0"/>
    <PlaceObject row="10" column="5">
      <Box width="10" height="5" backgroundcolor="green"/>
    </PlaceObject>

## See also

DefineColor, PlaceObject

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- Ol
- Options
- Otherwise
- Output
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 2.2.0 | Start page | Command reference | Other language: German