how to make elements Aligned inside div

I have a div with few elements , my label and textbox inside a div are not well aligned , You can see the screenshot .. Any idea to align these legal name and business name and textbox , so all the textboxes should start from the same point

thanks

Answers


Set width for your labels and inputs:

.the-label {
    width: 160px;
}

.the-input {
    width: 220px;
}

Need Your Help

Heroku Error Logs for Ruby on Rails App

ruby-on-rails postgresql heroku heroku-toolbelt

Noob Ruby on Rails Developer here, so please forgive my ignorance. So I am trying to get this app deployed on Heroku.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.