Reply to topic  [ 6 posts ] 
A little bit of HTML help 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
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!

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Fri Oct 14, 2011 8:22 am
Profile WWW
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
Unless I'm misunderstanding, it seems to me to be just about what tables were invented for.

_________________
I've finally invented something that works!

A Mac User.


Fri Oct 14, 2011 8:58 am
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 6:44 pm
Posts: 4141
Location: Exeter
Reply with quote
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).

_________________
"The woman is a riddle inside a mystery wrapped in an enigma I've had sex with."


Fri Oct 14, 2011 9:07 am
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
Agreed, divs are the way to go, probably floats.

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Fri Oct 14, 2011 11:04 am
Profile ICQ
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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.


Fri Oct 14, 2011 12:14 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
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!

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Fri Oct 14, 2011 12:30 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.