Simple control to put a img-tag with a transparent gif of the given dimensions.

Namespace:  EPiServer.WebControls
Assembly:  EPiServer.Legacy4 (in EPiServer.Legacy4.dll) Version: 6.1.379.0

Syntax

C#
[ObsoleteAttribute]
public class Clear : Control

Remarks

Renders a transparent gif, often used to force whitespace in designs.

An <episerver:clear runat="server" /> tag without height and width attributes will render: <img src="/util/images/clear.gif" alt="" width="1" height="1" border="0">

Default height and width is 1 pixel, if not specified. The control also renders alt="" to comply with accessability standards and border="0" to avoid a border around the transparent gif if placed inside a link.

Examples

Width and Height
CopyC#
<episerver:clear width="150" height="10" runat="server" />

Inheritance Hierarchy

System..::.Object
  System.Web.UI..::.Control
    EPiServer.WebControls..::.Clear

See Also