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!

labels next to list box

Status
Not open for further replies.

blexman

Programmer
Jul 18, 2001
34
CA
How do I get a label next to a list box ? Is there a paramenter on the form or select tag ? I can post code if you wish...
thanks
 
Hi ...
if you post your code here I think it well be better.
because what you write I think is very easy and we have to see what you really want ...
----
TNX.
E.T.
 
It sounds as if you just want to write soe text next to a select box:
Code:
Pick a color: <select name=&quot;selColor&quot;>
   <option value=&quot;r&quot;>Red</option>
   <option value=&quot;g&quot;>Green</option>
   <option value=&quot;b&quot;>Blue</option>
</select><br>
List boxes and such do not act like they do in VB. In HTML they are distinct objects and you can place text and other objects next to them if you would like (like placing a label next to a combobox in vb, or a label next to a listbox in Java). If you need an actual object to be able to manipulate similar to a label, you could use a span tag:
Code:
<span>Pick a color:</span><select name=&quot;selColor&quot;>
   <option value=&quot;r&quot;>Red</option>
   <option value=&quot;g&quot;>Green</option>
   <option value=&quot;b&quot;>Blue</option>
</select><br>
But again this is just another object next to an object. As long as their isn't a line break or paragraph tag between your text and list box they will be placed next to each other (space allowing of course).
-Tarwn The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch, and a user with an idea
-computer saying (Wiz Biz - Rick Cook)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top