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!

Set border width between input box on HTA page

Status
Not open for further replies.

cluM09

Technical User
May 15, 2004
127
US
Hello,

I am new to HTA page design. I would like to know if there is any way to set the border width between the input boxes on the page.

So far I have the follow code.

<input type="text" name="UserName" size="15"><br>
<input type="password" name="PassWordTextBox" size="15">

But when I launch the page, I see these two boxes very close to each other.

What I want is have a space between the two input boxes so that it is easier to read the page.

I can do follow, but the input boxes are too far apart from each other.

<input type="text" name="UserName" size="15"><br><br>
<input type="password" name="PassWordTextBox" size="15">

Thanks.

CluM09
 
Those are pretty much your options...I don't see the problem with the space with two <br>

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Quick fix is to throw in a div tag that pads it.

<input type="text" name="UserName" size="15">
<br>
<div style="font-size:5px; height:5px;"></div>
<input type="password" name="PassWordTextBox" size="15">

But, I'd recommend you look into style sheets. It'll give you a lot of control over the layout.
 
Neat trick Skie.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Skie,

That is exactly what I am looking for. It works great!

Thank you very much.

CluM09
 
The "low end" answer would be to use <P> tags instead of <BR>s, since by default paragraphs have a bit of vertical padding to them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top