?
Solved

HTML display problem

Posted on 2011-04-25
4
Medium Priority
?
249 Views
Last Modified: 2012-06-21
Hi, I have a HTML display problem . the two textfields are not alligned properly.

Here I'm attaching  the code  and the desired display expected-display.png  in zip file. Could you please have a look into that and suggest me what needs to be done to get the desired display.
html-code.zip
0
Comment
Question by:cofactor
  • 2
  • 2
4 Comments
 

Author Comment

by:cofactor
ID: 35458656
comments please
0
 
LVL 3

Expert Comment

by:wuyinzhi
ID: 35458658
you can use 2 <td> for label and input type. For example this line:

<td width="89%">Remark&nbsp;&nbsp;<input name="remark" type="text"></td>

can be split into 2 <td> like this:

<td>Remark</td>
<td width="89%"><input name="remark" type="text"></td>

do the same thing on "Assign To:" label.
0
 
LVL 3

Accepted Solution

by:
wuyinzhi earned 1400 total points
ID: 35458675
this is what i mean:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
 </HEAD>

 <BODY>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
	<tr>
		<td>Remark</td>												   
		<td width="89%"><input name="remark" type="text"></td>
	</tr>
	<tr>
		<input id="assigntoID" name="assignto" value="-1" type="hidden">
		<input id="hdnEmailID" name="hdnEmail" value="-1" type="hidden">
		<td>Assign To:</td>
		<td width="89%"><input name="fullName" value="" disabled="disabled" type="text"> &nbsp; <input name="btnSearch" class="submit_btn_base" value="Search" onclick="searchUser(document.forms[0].fullName.value)" type="button">
		</td>
	</tr>																								
	<tr>
		<td colspan=2>  <br>
		<input id="submit_1690601214" value="Approve" class="submit_btn_base" type="submit">
		<input id="submit_1173207487" value="Reject" class="submit_btn_base" type="submit">
		<input id="submit_1700119475" value="Print Preview" disabled="disabled" class="submit_btn_base" type="submit">
		<input id="submit_248498231" value="Export to Word" disabled="disabled" class="submit_btn_base" type="submit">
		</td>
	</tr>
</tbody></table>

</BODY>
</HTML>

Open in new window

0
 

Author Closing Comment

by:cofactor
ID: 35481845
This solved my problem
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question