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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV without a Carriage Return

Status
Not open for further replies.

Mickbw

Programmer
Jul 9, 2001
84
US
Hi,

How can I suppress a carriage return when there is a DIV tag.

I have two pop-up calendars tied to text boxes. The second Pop-Up is within a DIV tag because it is only displayed when the user wishes to query between two dates. This is all contained within a TD tag in a table. The TD tag is displayed in two lines and there is more than enough space in the TD for both text boxes.

Code:
<td>
	   <input type="hidden" name="TranDatemySQLFormat_date" />
	   <input type="text" name="TranDateValue_date" size=10/>
        <script language='JavaScript' src='/datepicker/popcalendar.js' type="text/javascript"></script> 
		<img src="/datepicker/calendaricon.gif" alt="Choose Date" border="0" onclick="popUpCalendar(this, document.StatementSearch.TranDateValue_date, document.StatementSearch.TranDatemySQLFormat_date,'mm-dd-yyyy', 0, 0)" /> 

	 <input type="hidden" name="TranDatemySQLFormat_date2" id="TranDatemySQLFormat_date2"/>
	  <div id="Date2" class="Invisible">&nbsp;<strong>AND</strong>&nbsp;
	  
<input type="text" name="TranDateValue_date2" size=10 id=="TranDateValue_date2"/>        
<script language='JavaScript' src='/datepicker/popcalendar.js' type="text/javascript"></script> 
		<img src="/datepicker/calendaricon.gif" alt="Choose Date" border="0" onclick="popUpCalendar(this, document.StatementSearch.TranDateValue_date2, document.StatementSearch.TranDatemySQLFormat_date2,'mm-dd-yyyy', 0, 0)" /> 
 </div>
</td>



Michael Brennan-White
New Hampshire Treasury Department
 
Few possible tricks:

- use SPAN instead of DIV
- place DIV into separated table cell (<TD>...</TD>)
- (desperate measure) change DIV.style.display to "inline"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top