Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 17th, 2008, 12:31 PM   #1
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
Question Newspaper sytle double-column

Hello
You have all seen the newspaper-style multi columns in MS Word or other text editors.
Does anyone know of a solution for this in PHP when printing?

On the web page I can simply make a table and put everything in two columns easily. But when it is printed the print order is not correct becasue what was seen in a single long page (web) will be divided into 3 or four pages and order of material in the columns will not be correct.

Any ideas?
Any suggestions is appreciated.
Logical1
__________________
^c^
Logical1 is offline   Reply With Quote
Old Apr 17th, 2008, 2:37 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: Newspaper sytle double-column

The CSS 3 specification has support for multi-column output. However, it's still a working draft, and therefore not officially sorted. In general, I'd recommend using CSS for styling, not tables, as while it's a bit more complicated, it's also a lot more flexible.

Try Googling "CSS columns" and finding the guide that suits you best. There's a fair amount of them. I'd also recommend testing them in all relatively recent versions of IE (5+), as some won't work correctly due to IE's horrible support for anything CSS.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 17th, 2008, 8:41 PM   #3
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Re: Newspaper sytle double-column

I suggest the following resources in terms of CSS for what you want to achieve, as what Ooble said holds, it isn't a PHP problem.
http://www.456bereastreet.com/lab/de...slayout/2-col/
http://www.maxdesign.com.au/presentation/page_layouts/
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Apr 20th, 2008, 10:04 PM   #4
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
Thank you but ..

Thank you guys for your kind answers, but I don't think I explained the issue well.

I am working on a little program that recieve data from PHP forms and saves it in MySQL database. These data can be seen and edited in other pages (so far so good).
Problem is that I want to add a function that when the user clicks on a button the page is send to MS Word or PDF file (here we are starting the problematic part).
My insane friend/client ($300 project) wants to see these exported material in two columns!
Problems are:
1. I have made a RTF file and can send the data there (by replace method). but when there is no value I can not get rid of empty rows.
2. I can't find anyway to arrange the material in two columns because I do not know the length of paragraphs.

If anyone can offer any solutions or ideas next time you pass by Canada drop me a line and a very healthy lunch and drinks are on me. Also if anyone wants to participate to do this on a fee, that is welcome too. Let me knwo your fee.
God save you all from illogocal clients and never (I do mean never take a friend as a client! or vise versa)
__________________
^c^
Logical1 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between double and Double in C# jonyzz C# 14 Jan 18th, 2007 6:38 AM
double functions (getting weird numbers) j0nathan C++ 4 Apr 5th, 2006 2:53 AM
How do i use a ^ for a double variable? dvu C# 4 Feb 3rd, 2006 9:27 AM
Retreiving a double from scanf() using "%f" bivhitscar C 3 Oct 30th, 2005 7:50 AM
Problem converting double to int Jared C++ 2 Feb 18th, 2005 1:53 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC