Old 27-01-2008, 09:07   #1 (permalink)
Dusteh
Sir digby chicken caesar
 
Dusteh's Avatar
 
Join Date: Sep 2004
Posts: 4,828
css3 multi-columns - js bodge.

As once raved about on alistapart a couple of years ago.

CSS3 Multi-Colum Layout Demonstration and Documentation - CSScripting.com

Can I get this to work? Can I feck. I've even copied the xhtml and css from their example page and it still ignored the js. ( Untitled Document )

I must be missing something horribly basic, anyone care to show me how I'm being a moron? Because this is doing my head in.
__________________
unconsolidated isoparms
  Reply With Quote
Old 27-01-2008, 10:23   #2 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
On a quick look, it looks like you have all the functions attached, but they are not being called anywhere. Try adding this to the end of your javascript file:

Code:
window.onload = function() { CSS3MultiColumn() }

Although I don't know if CSS3MultiColumn is the correct function to be calling onload. But since its first, I figure why not try it...
  Reply With Quote
Old 27-01-2008, 14:16   #3 (permalink)
Dusteh
Sir digby chicken caesar
 
Dusteh's Avatar
 
Join Date: Sep 2004
Posts: 4,828
The thing is I haven't touched their js file, it should work 'out of the box' and it is for them - its the way I've implemented it thats wrong - this should be the easiest thing in the world and I can't get it working!
__________________
unconsolidated isoparms
  Reply With Quote
Old 27-01-2008, 18:32   #4 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Maybe they expect designers to know it needs an onload call? I don't know, but there was no function call anywhere in that script. Did you try what I said?
  Reply With Quote
Old 27-01-2008, 18:46   #5 (permalink)
Hunch
Grumpy old man
 
Hunch's Avatar
 
Join Date: Oct 2007
Location: North Japan
Posts: 1,695
Doesn't look like an onLoad is necessary. They instantiate an object right at the bottom of the js include file which does a load of initialisation.

Do you have all the paths right for your setup Dusteh? (i.e. the css and js include files)

Edit: Checked your paths - seems ok.

Last edited by Hunch : 27-01-2008 at 19:04.
  Reply With Quote
Old 27-01-2008, 22:10   #6 (permalink)
Baz
Registered User
 
Join Date: Oct 2006
Posts: 25
This is so common for the news feed sites.
  Reply With Quote
Old 28-01-2008, 00:53   #7 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
My bad, I didn't notice the initializing function.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8