Pages Html

NuGet packageOwin.Framework.Pages.Html
GitHub sourceOwinFramework.Pages.Html

Home |  Readme

[ChildStyle] attribute | The OWIN Framework Pages

The [ChildStyle] Attribute

You can attach this attribute to any page element that is a container of other page elements and it will define the styles to apply to each of the children. This attribute is provided just for completeness and it not recommended. You should use CSS instead to define your styling.

Example Usage

[Container("ul", "{ns}_menu")]
[ChildContainer("li", "{ns}_menu-item")]
[ChildStyle("font-size: 12px;")]
public class MenuRegion

The [ChildStyle()] attribute has the following properties you can set.


This property contains the style definition to attach to each child container.