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

Mailing Labels Help 1

Status
Not open for further replies.

FastJimmy

Programmer
Jun 15, 2000
23
US
I was wondering if anyone at all has any experience printing out mailing labels from an HTML page.

Basically I have a list of shipping info (name, address, city, state, zip) for a number of different addresses. I would like to format an HTML page with this info on it and print it onto a sheet of mailing labels. (Such as the Avery Brand ones) I haven't been able to figure out how I would format the page or make the printout align on top of the labels.

Any help would be greatly appreciated! Thanks!!

Jimmy

 
You would most likely use a table and you could format it and then print it on a test sheet to see that it works - the spacing will have to be played with to make it correct. the other thing you need to locate is information on cascading style sheets and setting page breaks with their use this way if your labels run on two or more pages you could set the page breaks appropriately.
 
Here are the first steps I would take: seting up the table with border, play with the sizes until a printout matches your labels page layout; then you can start writing the information for each label, inside an embeded table to left align them and when everything looks prety, do not forget to change to border=0

<html>
<title>testing</title>
<body>
<table border=1 align=center cellspacing=10>
<tr align=center><td width=150 height=50>a</td><td width=150 height=50></td><td width=150 height=50></td></tr>
<tr align=center><td width=150 height=50></td><td width=150 height=50>b</td><td width=150 height=50></td></tr>
<tr align=center><td width=150 height=50></td><td width=150 height=50></td><td width=150 height=50>c</td></tr>
</td></tr></table>
</body>
</html>


==================
learning &amp; sharing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top