NuGet package | Owin.Framework.Pages.Html |
GitHub source | OwinFramework.Pages.Html |
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.
[IsRegion("menu_region")] [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.