Imagebutton / Image bug?

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
 
B

Bruno Alexandre

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
 
P

Peter

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?
 
B

Bruno Alexandre

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top