Balanced columns

This is a discussion on "Balanced columns" within the Web Page Design section. This forum, and the thread "Balanced columns are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 19th, 2003, 12:05
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Balanced columns

Does anyone know how to acheive a flowing column effect with CSS. What I want to do is have 2 or 3 columns that strech the height of the browser window, and when the text hit's the bottom on the first column, it then flows to the second column, and so on.

I am pretty sure this is possible i.e.,
http://www.iht.com/articles/114215.html

Cheers

u2o

  #2 (permalink)  
Old Nov 19th, 2003, 13:14
Junior Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Not that I know of. The example given uses a (rather nice) set of javascript code to split it in to columns and do the paging. Check out the ihtArtic.js for the main bulk of the code.

From what I understood this is how it worked. It layed out 3 columns. Each column contains all the article text. It then "scrolls" the second so it starts at where the first column stopped. It then "scrolls" the third column down to where the second column stopped.

This is done by, for example, moving the middle DIV column (created on the fly) up to the height of the left column. Because the column is only visible in a fixed position (done by CSS I think), it looks like the the text flows between columns. Infact, it's 3 columns all with the whole article text, just moved up to give the impression of columns. It also takes in to account font size (which can be altered by the user) to line up the lines perfectly. Very clever stuff.
  #3 (permalink)  
Old Nov 19th, 2003, 15:38
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Cheers for that! I did have a poke around in their code and styles and came to the conclusion that they had done a *very* good job. A bit of over-kill for what I want, but it does look good and work well (think I am going to recommend it in the site of the month forum).

I notice that CSS-3 is set to handle multi-columns like I want. I know Jack about CSS-3, so time to read.

http://www.w3.org/TR/2001/WD-css3-multicol-20010118/

Cheers,
u2o
Closed Thread

Tags
balanced, columns

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 3 columns? PicoDeath Web Page Design 31 Dec 8th, 2007 20:33
Columns and Rows tlo5 JavaScript Forum 4 Nov 20th, 2007 16:13
2 columns alexgeek Web Page Design 2 Aug 14th, 2007 23:57
3 Columns with CSS Pádraig Starting Out 8 May 31st, 2007 09:32
Three columns R8515198 Web Page Design 5 May 24th, 2007 19:16


All times are GMT. The time now is 00:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43