Currently, I am new to the world of ASP.NET and I am facing a challenge in styling a DataList. Lately, I have developed a fondness for rounded corners on borders, and I am attempting to incorporate this effect into all my pages by implementing it across all HTML tags. Unfortunately, when viewing the DataList on Internet Explorer, the border appears distorted as I observe rounded corners around each element within the DataList rather than just the four corners of the outer box border.
Upon investigation, I discovered that ASP.NET is inserting:
style="collapse-border:collapse"
into the tag that initiates my DataList in the rendered HTML. When this style rule is absent, the border displays precisely how I intended.
I am uncertain about how to remove the border-collapse style generated by ASP.NET. I do not see it within the Visual Web Developer IDE or in the properties of the DataList. Additionally, I am unable to override it in a style sheet. Does the style attribute on a tag supersede all other rules? Could anyone provide suggestions on how I can prevent ASP.NET from generating the border-collapse style?