Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? about formatting text within a html page 1

Status
Not open for further replies.

crystalb24

Programmer
Aug 31, 2004
75
US
I have a long list of checkboxes within a form on my page and some of the checkboxes contain sample outlines. Unfortunately because of the width of the tables some of the lines wrap to the next, causing the formatting to be incorrect when viewed in a browser. Is there any way to format the text so that it stays in checklist form, with subsequent rows indented?

~Crystal
 
try using two columns for the table. one that contains the checkboxes but with no text, and the other containing the text for each checkbox.

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Thanks so much. This works perfectly. I can't believe I couldn't come up with this, must be the curse of Monday mornings keeping me from thinking logically.
 
Ok, so here is the new problem. I have the text from the checkboxes populating into a text area, but I need the populated text to match what it looks like on the screen, with all the html tags showing. Here is the code that I have:

Code:
<!--Second form-->			  
					<form name="formName2" method="post" action="file:///G|/[URL unfurl="true"]wwwroot/PDGApps/AppFiles/ASPFiles/OnlineTraining/PCG/Fa_Rookie/MainMenu/Thanks.asp"[/URL] onsubmit="this.mission.value=this.textareaName.value;alert(this.mission.value);">
						<input type='hidden' name='mission'>
						<TEXTAREA ROWS="10" COLS="65" name="textareaName2"></textarea> 
						<p class="style20"><i>(insert best practice examples)</i></p>
						
						<table class="style20" width="100%">
							<tr>
								<td valign="top">
						<input type="checkbox" onclick="updateTextarea2(this)" name="checkbox" value="Pre-meeting checklist<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Schedule appointment; explain process<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Send [letter/agenda/questionnaire] to client/prospect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;<i>(insert sample meeting letters)</i><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;<i>(insert sample agendas)</i><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;<i>(insert sample questionnaires)</i><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;<i>(insert sample information packets)</i><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Request send in / bring in documents<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;<i>(insert sample document checklist)</i><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;If sending in, follow up process<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;If sending in, review documents<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Set up electronic & hard-copy files<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Schedule team participants for <b>Understand Your Goals</b> meeting<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Assemble materials needed for meeting<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&bull;Facilities check">
								</td>
								<td colspan="2">
								Pre-meeting checklist
								</td>
							</tr>
							<tr>
								<td>
								</td>
								<td colspan="2">
								&bull;Schedule appointment; explain process
								</td>
							</tr>
							<tr>
								<td>
								</td>
								<td colspan="2">
								&bull;Send [letter/agenda/questionnaire] to client/prospect
								</td>
							</tr>

As you can see the populated value contains &nbsp and other tags that show up in the text area. I need it to show up in the outline form that it appears on screen, or at least as close to it as I can get.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top