Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I opened new project from Visual Studio template - Web Forms application.

If I put ImageButton in existing Web Form using Master Page image appears too large and if I put ImageButton on Web Form without Master Page image is normal.

The same thing goes with other controls that include images.

Any information is appreciated...
Posted

1 solution

If you have a specific size that you want the ImageButton to be, set the css(style{ width: 50px; height: 50px; }) with the size you want the image to display and it will automatically resize to fit.
 
Share this answer
 
Comments
Jacob_Zac 10-Nov-12 6:12am    
Marcus, thanks a lot for your answer. It works, but I was looking for the solution on the project level. I would like to avoid setting the size for every control that includes image. ToolBar on the reportviewer is huge, I am not even sure if I can adjust the size of the toolbar buttons.
I don't understand why the template is set to have such image size.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900