Align input fields on one under each other


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Align input fields on one under each other
# 1  
Old 06-17-2016
Align input fields on one under each other

Hello again,

I'm having a issue with a contact form. I want the input fields to be aligned on same row and I really dont know how to do it.

I attached a image for you to understand what i am trying to do.

Code:
<BR>
<label for="name" class="required">
Name&nbsp;<strong class="required">(required)</strong>&nbsp;&nbsp;<input type="text" name="name" maxlength="50" size="30" value="" id="name" class="form-control inline-element"/>
     			</label>


<br>
<label for="email" class="required">
E-mail Address&nbsp;<strong class="required">(required)</strong> <input type="text" name="email" maxlength="50" size="45" value="" id="email" class="form-control inline-element"/>
     			</label>

<BR>
<label for="phone" class="required">
Phone Number&nbsp;<strong class="required">(required)</strong> <input type="text" name="phone" maxlength="30" size="20" value="" id="phone" class="form-control inline-element"/>
     			</label>
<BR>
<label for="issue" class="required">
Issue Type <strong class="required">(required)</strong>
<select name="issue" id="issue" class="form-control inline-element">
                        </label>
<option value="">Choose One...</option> 
<option value="Technical">Technical</option>
<option value="Billing">Billing</option>
</select>
</label>

Image
# 2  
Old 06-17-2016
a table maybe?:
Code:
<table>
<tr>
<td width=40% >
<label for="name" class="required">Name&nbsp;<strong class="required">(required)</strong></label></td>
<td><input type="text" name="name" maxlength="50" size="30" value="" id="name" class="form-control inline-element"/></td>
</tr>
<tr>
<td><label for="email" class="required">E-mail Address&nbsp;<strong class="required">(required)</strong></label></td>
<td><input type="text" name="email" maxlength="50" size="45" value="" id="email" class="form-control inline-element"/></td>
</tr>
<tr>
<td><label for="phone" class="required">Phone Number&nbsp;<strong class="required">(required)</strong></label></td>
<td><input type="text" name="phone" maxlength="30" size="20" value="" id="phone" class="form-control inline-element"/></td>
</tr>
<tr>
<td> <label for="issue" class="required">Issue Type <strong class="required">(required)</strong></label></td>
<td><select name="issue" id="issue" class="form-control inline-element">
<option value="">Choose One...</option>
<option value="Technical">Technical</option>
<option value="Billing">Billing</option>
</select></td>
</tr>
</table>

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

awk to clean up input file, printing both fields

In the f1 file below I am trying to clean it up removing lines the have _tn_ in them. Next, removing the characters in $2 before the ninth /. Then I remove the ID_(digit- always 4). Finally, the charcters after and including the first _. It is curently doing most of it but the cut is removing $1... (5 Replies)
Discussion started by: cmccabe
5 Replies

2. Shell Programming and Scripting

awk command to search based on 5 user input fields

Field1=”” Field2=”” Field3=”” Field4=”” Field5=”” USER INPUT UP TO 5 FIELDS awk -F , '{ if ( $3 == Field1 && $6 == Field2 && $8 == Field3 && $9 == Field4 && $10 == Field5) print $0 }' /tmp/rodney.outD INPUT FILE (Rodney.outD): ... (3 Replies)
Discussion started by: rmerrird
3 Replies

3. Shell Programming and Scripting

How to delimit the fields of a input file which has special characters?

Hi All, I am a newbie to Shell scripting. I have a requirement to Delimit the file fields of a Input file having special characters and spaces with ";". Input File ---------------------------------- Server Port ---------------------------------- Local ... (5 Replies)
Discussion started by: Suganbabu
5 Replies

4. Shell Programming and Scripting

awk to combine all matching fields in input but only print line with largest value in specific field

In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited, that are in $1 of gene which is just a single column of text. However only the line with the greatest $9 value in input needs to be printed. So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies

5. Shell Programming and Scripting

How to preserve spaces in input fields with awk?

I'm trying to do something pretty simple but its appears more complicated than expected... I've lines in a text file, separated by the comma and that I want to output to another file, without the first field. Input file: file1,item, 12345678 file2,item, 12345678 file2,item, ... (8 Replies)
Discussion started by: Armoric
8 Replies

6. Shell Programming and Scripting

Get the ipaddress and align based on the input file

Hi All, I have a file contains below contents, "interfacename/subnet: public (or) interfacename/subnet:cluster_interconnect" "en2"/10.185.81.0:cluster_interconnect,"en5"/10.185.81.0:cluster_interconnect,"en6"/169.181.146.0:public... (6 Replies)
Discussion started by: kamauv234
6 Replies

7. Shell Programming and Scripting

Formatting and combining fields of the input file

Hi, I have a file of the following format: AV 103 AV 104 AV 105 AV 308 AV 517 BN 210 BN 211 BN 212 BN 218 and the desired output is : AV 103-105 3 AV 308 1 AV 517 1 BN 210-212 3 (5 Replies)
Discussion started by: rochitsharma
5 Replies

8. Shell Programming and Scripting

Align the words

HI , I am new to shell scripting i m getting the below format like this Name FirstName Lastname ------ --------- ---------- Name1 Balaji NandaKishore Name123 Vijaya krsihna ... (5 Replies)
Discussion started by: Lucky123
5 Replies

9. UNIX for Dummies Questions & Answers

Validating input based on fixed number of fields

Yes, i did... let me state my problem in more detail Inputs: I have one input CSV file And, i have stored no. of comma each line should in a variable. e.g. $ cat cmt.csv this, is a ,comma ,count test1 ,,this, is a ,comma ,count test2 this, is a ,comma ,count test3... (6 Replies)
Discussion started by: Dipali
6 Replies

10. Shell Programming and Scripting

align several fields and fill spaces with zero

hi all, i have a big problem, and i donīt know what to do. i have a flat file with several fields, which are separated by ";" like this: 5656838-7B;97030000-7;*;V16106133 ;1;1; 4612062-0B;97030000-7;*;C14038149 ;1;2; 8044938-0B;97030000-7;*;V16034219 ;1;2; where B is a blank space. ... (2 Replies)
Discussion started by: DebianJ
2 Replies
Login or Register to Ask a Question