6.10.12. < rich:spacer > available since 3.0.0

### Create new RichFaces Documentation Jira issue

Summary
255 characters left
Description
Environment
This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.org Community Documentation

- Prev
- Next

### 6.10.12. < rich:spacer > available since 3.0.0

expand all

#### 6.10.12.1. Description

A spacer that is used in layout and rendered as a transparent image.

Figure 6.101. <rich:spacer> component

#### 6.10.12.2. Key Features

- Easily used as a transparent layout spacer

- Horizontal or vertical spacing is managed by an attribute

- Easily customizable sizes parameters

#### 6.10.12.3. Details of Usage

<rich:spacer> is a simple layout component which represents a transparent spacer. Thus, the main attributes that define its style are "style" and "styleClass".

In addition, the attributes are responsible for the component size: "width" and "height".

Moreover, to add e.g. some JavaScript effects, events defined on it are used.

- "onmouseover "

- "onclick "

- "onmouseout "

- etc.

#### 6.10.12.4. Reference Data

Table of <rich:spacer> attributes.

Table 6.142. Component Identification Parameters

Name | Value
--- | ---
component-type | org.richfaces.spacer
component-class | org.richfaces.component.html.HtmlSpacer
component-family | org.richfaces.spacer
renderer-type | org.richfaces.SpacerRenderer
tag-class | org.richfaces.taglib.SpacerTag

#### 6.10.12.5. Relevant Resources Links

On the component LiveDemo page you can see the example of <rich:spacer> usage and sources for the given example.

- Prev6.10.11. < rich:simpleTogglePanel > ...
- Top of page
- Front page
- Next6.10.13. <rich:tabPanel> available since 3.0.0