| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Sir digby chicken caesar
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
|
|
|
|
|
|
#2 (permalink) |
|
shiro
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:
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... |
|
|
|
#3 (permalink) |
|
Sir digby chicken caesar
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
|
|
|
|
#5 (permalink) |
|
Grumpy old man
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. |
|
![]() |