I am trying to center buttons in a table. It is not working for the WebImageButton but it is working fine for classic asp:button. I have tried everything I can think of. Here is my code, can anyone guide me. I am using version 14.1 CLR 4.5.
<tr> <td colspan="6" style="text-align: center"><!-- <igtxt:WebImageButton ID="cmdSave" text="Save" runat="server"></igtxt:WebImageButton> <igtxt:WebImageButton ID="cmdCancel" Text="Cancel" runat="server"></igtxt:WebImageButton>--> <asp:Button ID="Button1" runat="server" Text="Button" /> </td> </tr>
Hello bpabmeyer ,
Thank you for posting in our forum.
I’ve tested this on my side however I was not able to reproduce this.
Both the image buttons and the asp Button were centered in the cell when I tested this on my side.
I’ve attached a sample for your reference. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the sample is not an accurate demonstration of what you’re aiming to achieve, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
I’m looking forward to your reply.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support
Maya, thanks for the quick response but it is still not working for me. Attached is a copy of what I see.
Could you try zipping and attaching the image as it doesn’t seem to display correctly at the moment?
Also have you had the chance to test the sample I’ve previously attached?
If so were you able to reproduce the issue in it?
Maya,
I am not sure what happened but it started working. I am using VS2013. I did a clean on the project, not sure if that had any affect on it or not. It still shows left justified in the development environment but when I run the project it shows correctly on the screen. I don't understand why but it is working correctly now. Thanks for your quick response.