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

Need Help with side-by-side listboxes

Status
Not open for further replies.

wchull

MIS
Jun 14, 2001
93
US
I still consider myself to be a novice when it comes to HTML so I'm looking for some help.

I trying to write an HTA program with imbedded VBScript and I have a situation where I need to put two columns of information side by side starting off with two drop down listboxes.

So far I can do this if I create a VERY long string of HTML code where everything needed is on a single line but this makes readabily of the code difficult. I'm assuming that there is some way to split lines of HTML code so that you can have two list boxes side by side without 1 big huge line but I haven't found anything yet. Can someone help me out?
 
As long as there is enough room to acommodate the listboxes, you can just produce them one under the other in code and they should appear side by side in the browser.

Failing that you could wrap the list boxes in <span>'s and that will assure they are side aside, again space permitting.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for the reply.

My problem is that I'm not understanding exactly how to code this. When I code it like this I get them stacked and what I want is for them to be side-by-side.

<Pre> Server 1 <select name="Server1" size="1">
<option value="">Select Server 1</option>
<option value="Srv00001">Srv00001</option>
<option value="Srv00002">Srv00002</option>
</select>
Server 2 <select name="Server2" size="1">
<option value="">Select Server 2</option>
<option value="Srv00003">Srv00003</option>
<option value="Srv00004">Srv00004</option>
</select>
 
You should not wrap them in a <pre> element. This element maintains the whitespace and line breaks that is in your code, while without this element html is whitepace agnostic -- meaning everything is on a single line with just one space unless given &nbsp; or <br /> element.
 
Vrag is right, remove the <pre> tags and the should be shown side by side.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top