x404.co.uk
http://www.x404.co.uk/forum/

A little bit of HTML help
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=14960
Page 1 of 1

Author:  Fogmeister [ Fri Oct 14, 2011 8:22 am ]
Post subject:  A little bit of HTML help

Hi All,

Trying to write a report and need to create the template repeating block in HTML.

Just not sure how to go about it at the beginning.

I know what the block needs to look like just not sure if I should use tables or divs or whatever.

The repeateing blaock will be something like this...

Code:
Acc code - Name             ***Item info*****************************************
Address                      *****************************************************
Address                      //////service info////////////////////////////
Address                     /////////////////////////////////////////////
Address                    /////////////////////////////////////////////
Postcode                   ///////////////////////////////////////////
Tel


Did it very ropughly but it kind of gives you an idea.

Three blocks... one for the customer info, one for the item info and one (with an unlimited number of lines) for the service info.

This block will be repeated for all items/customers.

i.e.
--------------------------------------
block
--------------------------------------
block
--------------------------------------
etc...

Seeing as this is a printed report I'm thinking of just doing it using tables?

Is that a wise move?

Thanks for any help!

Author:  tombolt [ Fri Oct 14, 2011 8:58 am ]
Post subject:  A little bit of HTML help

Unless I'm misunderstanding, it seems to me to be just about what tables were invented for.

Author:  jonlumb [ Fri Oct 14, 2011 9:07 am ]
Post subject:  Re: A little bit of HTML help

If it's just different sections, then it should be divs.

The only time you should be using tables is for tabular data (a la the contents of a spreadsheet).

Author:  big_D [ Fri Oct 14, 2011 11:04 am ]
Post subject:  Re: A little bit of HTML help

Agreed, divs are the way to go, probably floats.

Author:  forquare1 [ Fri Oct 14, 2011 12:14 pm ]
Post subject:  Re: A little bit of HTML help

IMO, if it's only ever going to be used for print, tables are probably fine.
If there is ever a chance it might get put into a browser, do it properly.

Author:  Fogmeister [ Fri Oct 14, 2011 12:30 pm ]
Post subject:  Re: A little bit of HTML help

forquare1 wrote:
IMO, if it's only ever going to be used for print, tables are probably fine.
If there is ever a chance it might get put into a browser, do it properly.

Thats what I thought.

I went for nested tables in the end.

Thanks all!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/