473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Advice needed for HTML layout

Hi all,
I have a printout of a barcode label with various sections of info,
e.g. sender, receiver, product details, notes... etc.
I am currently designing a page which must look exactly like the this
label when printed. The problem in HTML is that the table layout
cannot be adjusted to the exact size that I would have liked it to be,
and this causes a lot of frustration indeed.
I need advice from people in this group on how I can solve the problem
in HTML.
If you can recommend any tools that I can use, that would be much
appreciated.

Thanks,
June.
Jul 20 '05 #1
7 1695
June Moore wrote:
Hi all,
I have a printout of a barcode label with various sections of info,
e.g. sender, receiver, product details, notes... etc.
I am currently designing a page which must look exactly like the this
label when printed.

You cannot get a web page to look like a printed page. Period. Your
only near success will be on your computer with one browser. It may look
similar and that is the best you can expect. HTML was not designed for
page layout the way you want.
If you want an exact duplicate, use an image. Given your statement of
the requirements, a good sized image could be made on the fly that would
be quite small in bytes: black-and-white or grayscale, and compressed. PNG
and JPEG both do well in this regard.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #2
ju******@yahoo.com.au (June Moore) wrote:
I have a printout of a barcode label with various sections of info,
e.g. sender, receiver, product details, notes... etc.
Okay.
I am currently designing a page which must look exactly like the this
label when printed.


HTML is not the right job for this task. Either use a format designed
for precise control of the printed output, or simply use an image
format.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
jmm-list-gn <jm***************@sohnen-moe.com> wrote in message news:<MJ********************@giganews.com>...
June Moore wrote:
Hi all,
I have a printout of a barcode label with various sections of info,
e.g. sender, receiver, product details, notes... etc.
I am currently designing a page which must look exactly like the this
label when printed.

You cannot get a web page to look like a printed page. Period. Your
only near success will be on your computer with one browser. It may look
similar and that is the best you can expect. HTML was not designed for
page layout the way you want.
If you want an exact duplicate, use an image. Given your statement of
the requirements, a good sized image could be made on the fly that would
be quite small in bytes: black-and-white or grayscale, and compressed. PNG
and JPEG both do well in this regard.


Can you tell me how I can create the image on the fly? Note that the
printout will have some data that is dynamic and I'm not sure if there
are any software available that will allow me to embed the data inside
the image on the fly.

June.
Jul 20 '05 #4
ju******@yahoo.com.au (June Moore) wrote in message news:<e5**************************@posting.google. com>...
label when printed. The problem in HTML is that the table layout
cannot be adjusted to the exact size that I would have liked it to be,
and this causes a lot of frustration indeed.
You could try creating the labels in PDF.
If you can recommend any tools that I can use, that would be much
appreciated.


http://www.ros.co.nz/pdf/user.php
Regards,
Rithish.
Jul 20 '05 #5
On 11 Aug 2004 20:53:26 -0700, ju******@yahoo.com.au (June Moore)
wrote:
I have a printout of a barcode label with various sections of info,
e.g. sender, receiver, product details, notes... etc.


Dead easy - use HTML, lots of <div>s and use absolute CSS positioning
to control their layout. Use CSS measurements in cm (this is CSS'
biggest advantage over a HTML table for this task)

It's terrible web design, but it's just the ticket for printing
barcodes.

NB - Every user that views the page and has a vaguely competent
browser will get teh same sticker layout. However you will need to
distribute the barcode font to them beforehand. OK for an intranet,
not quite so easy for the world at large.
--
Smert' spamionam
Jul 20 '05 #6
On Thu, 12 Aug 2004 04:58:23 -0700, June Moore wrote:
jmm-list-gn <jm***************@sohnen-moe.com> wrote in message news:<MJ********************@giganews.com>...
June Moore wrote:
> Hi all,
> I have a printout of a barcode label with various sections of info,
> e.g. sender, receiver, product details, notes... etc.
> I am currently designing a page which must look exactly like the this
> label when printed.
>

You cannot get a web page to look like a printed page. Period. Your
only near success will be on your computer with one browser. It may look
similar and that is the best you can expect. HTML was not designed for
page layout the way you want.
If you want an exact duplicate, use an image. Given your statement of
the requirements, a good sized image could be made on the fly that would
be quite small in bytes: black-and-white or grayscale, and compressed. PNG
and JPEG both do well in this regard.


Can you tell me how I can create the image on the fly? Note that the
printout will have some data that is dynamic and I'm not sure if there
are any software available that will allow me to embed the data inside
the image on the fly.


There is. It will require server-side programming. Take a look at:

http://www.boutell.com/gd

http://be.php.net/image

grtz

Vincent
Jul 20 '05 #7
ri*****@dacafe.com (Rithish) wrote in message news:<fd*************************@posting.google.c om>...
ju******@yahoo.com.au (June Moore) wrote in message news:<e5**************************@posting.google. com>...
label when printed. The problem in HTML is that the table layout
cannot be adjusted to the exact size that I would have liked it to be,
and this causes a lot of frustration indeed.


You could try creating the labels in PDF.


Of course, as the others have mentioned, what I have suggested has to
be be done with server-side programming.

Regards,
Rithish.
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: www.Search24-7.com | last post by:
I am working on a project site. The url is www.search24-7.com. I am looking for feedback (both negative and positive). I am new here and want to learn ways to drive traffic, improve my rank etc....
23
by: Mark Tranchant | last post by:
A new project: http://step-by-step.org.uk/ Don't worry about the links yet, the content hasn't been written. I'm just interested in the introduction screen, which is my first attempt at an...
16
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why...
32
by: Alan Silver | last post by:
Hello, I shamefully admit to be an old web designer, from before the days of CSS. In those heady days, tables were king and were used for every possible kind of alignment. When CSS came along,...
3
by: jqpdev | last post by:
Hello all, I've been developing web apps using Borland's websnap technology which is built upon asp technology. I'm tranisitioning to ASP.NET VS.NET and need some techniques/best practices to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
53
by: Paul Watt | last post by:
Hi again, Ok so I've got two new problems with this layout http://www.paulwatt.info/test/turn/ 1) When I increase the width of the Maincontent Div from 73% to 74% to line it up with the right...
28
by: Ian Davies | last post by:
Hello I would appreciate some help from someone who has knowledge of working with css, php javascript and how they interact. Ive been working on a task for the last few days and have started to...
0
by: waggledance | last post by:
I was wondering if anyone here might be able to offer me some advice for someone who can only use Macromedia Dreamweaver MX. I am (clearly!) a web design novice so apologies in advance if this is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.