Skip to main content
Tab

ImageSpriteProperties.CssClass Property

Gets or sets the name of the cascading style sheet (CSS) class that defines a normal state image’s position within a custom sprite image.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("")]
public virtual string CssClass { get; set; }

Property Value

Type Default Description
String String.Empty

A String value specifying the cascading style sheet class’ name.

Remarks

In order to define an image’s position within a sprite image using cascading style sheets, set the CssClass property to the name of the required CSS class which contains image settings (such as image width, height, horizontal and verticall offsets within the sprite).

To learn more, see the ‘Using named CSS classes‘ section within the topic Custom CSS Sprites.

See Also