Qbasicnews.com

Full Version: Tab stops in HTML
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok. I know that HTML won't support the tab stops I have in Notepad.

BUT: What if I wanted to align two textboxes, such as:

Code:
Name:    [Textbox goes here]
Message: [Textbox goes here]

(I just used the code tags for alignment)
There are a few ways:

a) Tables

Code:
<TABLE>
<TR>
  <TD>NAME:</TD>
  <TD>[Textbox goes here]</TD>
</TR>

<TR>
  <TD>MESSAGE:</TD>
  <TD>[Textbox goes here]</TD>
</TR>

</TABLE>

b) PRE Tag

Code:
<PRE>
Name:    [Textbox goes here]
Message: [Textbox goes here]
</PRE>

c) Non break spaces

Code:
NAME:&&&&&&&&&[Textbox goes here]<br>
MESSAGE:&&[Textbox goes here]<br>

phpBB removed the non break spaces, so replace the & (ampersand) with -&-n-b-s-p-;- (remove the dashes "-")
Big Grin Thanks, the 2nd one is exactly what I needed.