Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / C1Style Class / MaxWidth Property

In This Topic
    MaxWidth Property (C1Style)
    In This Topic
    The max-width property defines the maximum width of an element.
    Syntax
    'Declaration
     
    
    Public Property MaxWidth As Nullable(Of C1StyleLength)
    public Nullable<C1StyleLength> MaxWidth {get; set;}
    Remarks
    If the content is larger than the maximum width, it will automatically change the height of the element. If the content is smaller than the maximum width, the max-width property has no effect. This prevents the value of the Width property from becoming larger than MaxWidth. The value of the MaxWidth property overrides the Width property.
    See Also