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!

How to make half a space , not 2 <br> but 1-1/2 1

Status
Not open for further replies.

melstef

Programmer
Feb 19, 2003
69
CA
Hello, Is it possible to make one an a half space. I don't want <br><br> but <br>1/2?

Do someone understand and could help me. thanks.
 
<span style=&quot;line-height: 150%&quot;>

your lines here

</span> Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
thank you for your tip I didn't know that, but what I forgot to mention is that the 1-1/2 <br> is for two form boxes (drop down menu).
 
style=&quot;margin-left:WHATEVERpt;&quot;

or use a transparent image and size it as you wish
 
I'm sorry if I don't understand..
here is my html, could you insert the &quot;style&quot; in my html. thank you <form name=&quot;doublecombo&quot;>
<p>
<select name=&quot;example&quot; size=&quot;1&quot; onChange=&quot;redirect(this.options.selectedIndex)&quot;>
<option>Choose</option>
<option>Energy-Fire</option>
<option>Energy-Electricity</option>
<option>Energy-Gas</option>
<option>Energy-Nuclear</option>
<option>Energy-Hydro</option>
</select>

<select name=&quot;stage2&quot; size=&quot;1&quot;>
<option>Choose</option>
<option>Safety Education</option>
<option>General Knowledge</option>
</select>
<br>
<input name=&quot;SUBMIT&quot; type=&quot;button&quot; id=&quot;SUBMIT&quot;
onClick=&quot;go()&quot; value=&quot;SUBMIT&quot;>
&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>

 
If you mean the select box, I'm not sure that you can do that. While you can set the font-size for a select box, you cannot set the line-height... Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
yeah- not sure about a style, but a clear image would work and you could make the space inbetween whatever you wanted it to be- just adjust the height attribute (here I have it at 10):
<p>
<select name=&quot;example&quot; size=&quot;1&quot; onChange=&quot;redirect(this.options.selectedIndex)&quot;>
<option>Choose</option>
<option>Energy-Fire</option>
<option>Energy-Electricity</option>
<option>Energy-Gas</option>
<option>Energy-Nuclear</option>
<option>Energy-Hydro</option>
</select><br>
<img src=&quot;images/clear.gif&quot; HEIGHT=&quot;10&quot; width=&quot;1&quot;><br>
<select name=&quot;stage2&quot; size=&quot;1&quot;>
<option>Choose</option>
<option>Safety Education</option>
<option>General Knowledge</option>
</select>
<br>
<input name=&quot;SUBMIT&quot; type=&quot;button&quot; id=&quot;SUBMIT&quot;
onClick=&quot;go()&quot; value=&quot;SUBMIT&quot;>
<br>
</p>
 
I thought he was trying to increase the spacing of the elements of the select box itself, not between them. Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
I was thinking horizontal spacing when I said margin-left... sorry about that... hmmm size of the selects.... hmmm perhaps he is...melstef?
 
You can also use an empty table row like this:

<TR><TD HEIGHT=&quot;15&quot;></TD></TR>

There's always a better way...
 
thank you theconehead:
the idea of the image is perfert. it looks really good.
thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top