Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir, i have a form in which i am showing 3-4 textbox and 1 submit button. i want to make this form mobile friendly also. i want to show my textbox in center or from with 40% width but when open this form on mobile it fit to the mobile screen like "m.facebook.com" login page.

What I have tried:

i am trying some diffrents codes:
HTML
    <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />


and using bootstrap css:

ASP.NET
<asp:TextBox ID="firstname" runat="server"  CssClass="form-control" placeholder="Name Of the Client" />


but its not working for me.
Posted
Updated 28-Nov-16 21:32pm

You will have to learn responsive web design.
1. Start with the basic ideas of responsive web design from The Three R's of Responsive Web Design - Peter Leow's Code Blog[^]
2. A walk-through from the Responsive Web Design Basics  |  Web  |  Google Developers[^]
3. To find the use of Bootstrap in creating responsive layout, head to Bootstrapping Your Web Pages 2 - Laying Out Responsively - Peter Leow's Code Blog[^]
 
Share this answer
 
v2
You can check if required any parent class in any parent container, Also you can check whether your css are calling properly on the page, may be css file path missing.
 
Share this answer
 

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