M
Matt Sollars
Hello.
Has anyone else noticed that the Image server control emits a style
attribute for a 0px border by default? If I drop an Image control on a
form and set nothing but the ImageUrl property, it is rendered as the
following:
<img id="Image1" src="Blue%20hills.jpg" style="border-width:0px;" />
This is just not good when I want to specify a CSS class for the image
that uses a border. Again, if I add a value to the CssClass property to
my image that specifies a border, it is still rendered as follows:
<img id="Image1" class="Bordered" src="Blue%20hills.jpg"
style="border-width:0px;" />
This overwrites my style and removes the border! Am I losing my mind here?
Thanks,
Matt
Has anyone else noticed that the Image server control emits a style
attribute for a 0px border by default? If I drop an Image control on a
form and set nothing but the ImageUrl property, it is rendered as the
following:
<img id="Image1" src="Blue%20hills.jpg" style="border-width:0px;" />
This is just not good when I want to specify a CSS class for the image
that uses a border. Again, if I add a value to the CssClass property to
my image that specifies a border, it is still rendered as follows:
<img id="Image1" class="Bordered" src="Blue%20hills.jpg"
style="border-width:0px;" />
This overwrites my style and removes the border! Am I losing my mind here?
Thanks,
Matt