Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

3 colums in equal lenght
Hello,

I've got 3 colums on my website. I want all of them to be almost equal in
lenght ( I may be a little bit different, but not to much). I'm now
generating a PHP website where one colum is sometimes a lot longer then the
other!

I've got 5 to 15 articles from different sizes to display on the website,
how can get the three colums almost even in lenght??

The articles may be placed random on the site.

thnx,

PRCR



Report this thread to moderator Post Follow-up to this message
Old Post
Procor
04-17-05 01:55 AM


Re: 3 colums in equal lenght
> I've got 5 to 15 articles from different sizes to display on the website,
> how can get the three colums almost even in lenght??

Could you surround each bit with

<table width="100%">
<tr>
<td width="33%">Col 1</td>
<td width="33%">Col 2</td>
<td width="34%">Col 3</td>
</tr>
</table>

Report this thread to moderator Post Follow-up to this message
Old Post
Chris B
04-17-05 01:56 PM


Re: 3 colums in equal lenght
Hello,

I need a solution for calculating and lining out the height (not widht)

Thnx

"Chris B" <zen19389@REMOVEzen.co.uk> wrote in message
news:426225ac$0$26337$db0fefd9@news.zen.co.uk... 
>
> Could you surround each bit with
>
>  <table width="100%">
>  <tr>
>  <td width="33%">Col 1</td>
>  <td width="33%">Col 2</td>
>  <td width="34%">Col 3</td>
>  </tr>
>  </table>



Report this thread to moderator Post Follow-up to this message
Old Post
Procor
04-18-05 01:55 AM


Re: 3 colums in equal lenght
I noticed that Message-ID: <d3rvgr$ln1$1@reader08.wxs.nl> from Procor
contained the following:

>
>I've got 5 to 15 articles from different sizes to display on the website,
>how can get the three colums almost even in lenght??
>
>The articles may be placed random on the site.

Is it possible to flow an article from one column to another?

If so you could join all articles together then do a string length and
divide by three (splitting on a space)

Or how about sorting articles into order of length then doing:

article 1	  article2	  article3
article 6	  article5	  article4
article 7	  article8	  article9
article 12  article11  article10

and so on.  It should even things up a bit.

--
Geoff Berrow  0110001001101100010000000110
 0011011010110110010001101111011001110010
11
 1001100011011011110010111001110101011010
11

Report this thread to moderator Post Follow-up to this message
Old Post
Geoff Berrow
04-18-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:17 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.