Back to Devexpress

ImageSpriteProperties.CssClass Property

aspnet-devexpress-dot-web-dot-imagespriteproperties.md

latest1.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string CssClass { get; set; }
vb
<DefaultValue("")>
Public Overridable Property CssClass As String

Property Value

TypeDefaultDescription
StringString.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

CSS Image Sprites

ImageSpriteProperties Class

ImageSpriteProperties Members

DevExpress.Web Namespace