Class Style
Generate a standard HTML5 <style> tag
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Style : Tag<Style>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceMedia(String)
Set the media attribute on the <style> tag
Declaration
public Style Media(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | what should be in media='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Style | a Style object to enable fluid command chaining |
Type(String)
Set the type attribute on the <style> tag
Declaration
public Style Type(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | what should be in type='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Style | a Style object to enable fluid command chaining |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable