Imagebutton / Image bug?

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello NG,

Why in Asp.net 2.0 Image / Imagebutton always renders a style
'border-width:0px' even if Borderwidth is empty ? Is there a workaround ?

thanx
 
it's by default,

did you tried to add the style as CSS to change it?

or add:
BorderWidth="1" BorderStyle="Solid" BorderColor="Black" to the tag
 
hi Bruno,

problem:
i would like to set the border-width in a css file for all controls.
because asp.net always renders border-width as inline-style
and overrides settings from css class it's impossible!
no workaround to stop asp.net's behavior?
 
if you ommited in the tag properties, css file will be the one that the tag
uses!

maybe you are setting the CSS wrong?


try:

..border {
border: solid 3px black;
}

in a CSS file, link it in the page and then add CssClass="border" to the
asp:image tag
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top