Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tab stops in HTML
#1
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)
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#2
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 "-")
Reply
#3
Big Grin Thanks, the 2nd one is exactly what I needed.
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)