Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on an asp.net webapp for the iPhone. When I first started the app on my iPhone it looked fine but after a few minutes, and since then, all the controls on the page are very small although I specified sizes. Re-uploading the app to my server didn't solve the problem - which only occures on the iPhone.

This is one of the buttons for example: <asp:Button ID="Button1" runat="server" Font-Size="12" OnClick="Button1_Click1" Text="Upload" Height="39px" Width="82px" />

This is how it looked at the beginning: http://i1168.photobucket.com/albums/r493/washingtion1/2_zps92546931.png[^]
This is how it looks now:
http://i1168.photobucket.com/albums/r493/washingtion1/1_zps82eb6d13.png[^]
Posted

It seems, you have dragged the controls and that gets your css file affected.

Can you have a quick look into the stylesheet. Probably you have some input class that gets affected.

Let me know, if this solves.

cheers
 
Share this answer
 
Comments
Member 7682309 26-Sep-12 16:40pm    
Where do I find the stylesheet? What should I look for in it?
Sandip.Nascar 27-Sep-12 1:03am    
Could you have a look that in asp page, you have any reference to stylesheet (.css)? If no stylesheet reference exists, then the problem is different. Let us know.
Member 7682309 27-Sep-12 1:36am    
I have checked it and there is no reference to a CSS stylesheet.
Sandip.Nascar 27-Sep-12 1:40am    
Did you used any theme? Could you please have a look, if the page is inherited from master page. If yes, check any css reference in master pages as well. This is definitely something related to css or inner style which gets updated automatically.

Also, have a look in the page itself, if there is any <style></style> tags.
Member 7682309 27-Sep-12 1:46am    
No reference to a CSS stylesheet or <style> tags in the master page.
OK - When I looked at the page source I noticed that a style property was added to every control on the page. I was able to fix my problem by adding the same style property to my original code.
(By the way, I still don't understand why my solution works exactly.)
 
Share this answer
 
v2

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