N
Nathan Sokalski
I have an Image control that uses the CssClass property to access a
stylesheet I am using. When I do not specify the BorderWidth property of the
Image control, it adds border-width:0; without me specifying it. Because the
style attribute overrides the class attribute in HTML (or in this case,
XHTML), this is preventing my CSS class from being able to set the width of
the border. Why is ASP.NET adding border-width:0; to the style attribute? It
does not add any other CSS properties (not even border-color or
border-style). What can I do to prevent it from adding the border-width so
that I can use my CSS class? Thanks.
stylesheet I am using. When I do not specify the BorderWidth property of the
Image control, it adds border-width:0; without me specifying it. Because the
style attribute overrides the class attribute in HTML (or in this case,
XHTML), this is preventing my CSS class from being able to set the width of
the border. Why is ASP.NET adding border-width:0; to the style attribute? It
does not add any other CSS properties (not even border-color or
border-style). What can I do to prevent it from adding the border-width so
that I can use my CSS class? Thanks.