Click here to Skip to main content
12,767,637 members (52,274 online)
Rate this:
Please Sign up or sign in to vote.
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 9-Nov-12 5:59am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100