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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating blank lines to write on with HTML 4

Status
Not open for further replies.

witchblade

Programmer
Aug 1, 2001
50
0
0
US
Hi,
There is probably a simple solution to this, but...
I have to create a text document with blank lines in it so that when someone prints it out they can write on the line.
(ie)
Name: _______________
Address: ____________
etc...

But, there's no way to get everything to align properly on the right hand side. Or I don't think there is.

I can't use CSS, so it's just straight HTML. Would using a form be better?
[gorgeous]
 
Have you tried underlining a bunch of non-breaking spaces?

Code:
<html>
Spell it out, chump:<u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u><br />
</html>

Another idea is to use a graphic that is 1 pixel wide and ten pixels high. The top 9 pixels are a transparent part of a GIF and the bottom pixel is black. Place it like this:

Code:
<img src=&quot;SkinnyPuppy.gif&quot; height=&quot;10&quot; width=&quot;200&quot; alt=&quot;underlined space&quot;></img>
[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
Hi mate,

I may be missing something here but whats wrong with a very basic table structure?
Code:
<table>
<tr>
<td>Name:</td><td>______________________</td>
</tr>
<tr>
<td>Address:</td><td>______________________</td>
</tr>
</table>
Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thanks.

Edward, I'll give them a try.

Wullie, I'm using a table structure now, but the lines do not align properly on the right hand side.

[gorgeous]
 
why not make it so they can type in the lines
<table>
<tr>
<style>
.txt {
border-top:solid white;
border-right:solid white;
border-left:solid white;
border-bottom:1px solid black;
</style>
<td>Name:</td><td><input type=&quot;text&quot; class=&quot;txt&quot;></td>
</tr>
<tr>
<td>Address:</td><td><input type=&quot;text&quot; class=&quot;txt&quot;></td>
</tr>
</table>

and then print [wink] _________________________________________________________
for the best results to your questions: FAQ333-2924
[sub]01001111 01101110 01110000 01101110 01110100[/sub]
onpnt2.gif
[sup] [/sub]
 
Ugh, my post was supposed to have a bunch of things between the <ul> and the </ul> The things were supposed to be non-breaking spaces, which are represented by and ampersand, followed by &quot;nbsp&quot;, followed by a semicolon. I tried a couple of different ways to portray it and thought I had it, but still must have screwed up. So, sorry if it looks like I just stuck a bunch of spaces in there. I didn't.

witchblade, my understanding of your issue is that you expect people to print out your form and fill it in, right? In that case, no one has to fill anything in online.

There are other ways to go about it. My first and possibly simplest suggestion is to make the form a PDF that they can download.

Another is to use a table layout like Wullie and onpnt suggested. Those would be quite speedy to implement, too.

The nice thing about using a table (especially with the class calls mentioned by onpnt) is that in the future, if you decide to move to or include an online submission, there's pretty much nothing you have to change.

Cheers,
[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
Edward,

To display &amp;nbsp; on this forum you need to type &amp;amp;nbsp;

When you add this to a post, never preview it otherwise the preview looks great but the actual post messes up.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thanks everybody!
I had to go with the table solution.
I wasn't allowed to use a pdf, or a form, or much anything else for that matter. And I had such a nice form I made with JavaScript...
Thanks again!!
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top