Wrox Programmer Forums
|
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2013, 09:53 AM
Registered User
 
Join Date: Jun 2013
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Login Control cut off at iPhone size

I have a standard Login Control on a page with a Password recovery control. My webpage is http://www.airlinepilothiring.net/login.aspx

The problem is that when I view on an iPhone (you can see the effect just by resizing the browser) the textboxes for username and password get cut off. I've converted the login control to a template and I still can't see the problem. It seems like there's way too much space between the UserName label and the Username textbox but those are the only two td's and I have no explicit width's set.

Any help would be greatly appreciated!
 
Old June 27th, 2013, 10:27 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

In your styles.css you set the width of a label to 250px; Since the labels in front of the text boxes are rendered as a <label /> control, they always take up 250 pixels. Removing the width for label in Styles.css should fix the issue.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
kentwb (June 27th, 2013)
 
Old June 27th, 2013, 12:16 PM
Registered User
 
Join Date: Jun 2013
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Worked like a charm! I love it when a fix is easy. Thank you so much for your books and help on your site. I was able to build my site with NO previous experience just from your resources and a some web searches. You do a terrific job and all you hard work is greatly appreciated.
 
Old June 28th, 2013, 07:17 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Thanks; glad you like it.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 28th, 2013, 07:43 AM
Staceysmith
Guest
 
Posts: n/a
Default

currently I'm working on a project upon the mobile application where somewhat a similar problem came to me .. though i was no9t s aware with this forum at that duration and got it solved through a relevant book .. but next time I'll surely come to this for a help..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating the size of a file being uploaded by the FileUpload control malie22001 BOOK: Beginning ASP.NET 4 : in C# and VB 4 April 12th, 2012 05:06 PM
FileUpload control -- file size detection ekwong ASP.NET 2.0 Basics 3 November 7th, 2006 06:32 PM
control window loading size, toolbars etc dunc Javascript How-To 1 August 18th, 2004 06:33 AM
control size of image fail... joeore Beginning PHP 2 April 22nd, 2004 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.