Previous Message
Next Message

CSS solution for IHT articles?

Sent by Peter-Paul Koch on 31 January 2005 09:09


> John Weir (http://www.smokinggun.com) created the very cool (IMO)
> single-/multi-column layout for news articles at IHT (example:
> http://www.iht.com/articles/2005/01/30/news/iraq.html). This used
> JavaScript, which he released for public domain use. I used his code on
> a client's site last year. The problem is Firefox does not like the
> SmokingGun Javascript code. I always get a JS error and FF shuts down
> before displaying the page.

I just tested it in Firefox, and it works fine for me.

> For this reason, as well as all of the other benefits CSS brings to the
> table, I would like to use CSS to attain this IHT news article
> behavior. Does anyone know if such a solution already exists? Or any
> other ideas.

Absolutely impossible. This is a JavaScript solution, not a CSS
solution. CSS cannot react to user events like the clicks and it
cannot change the way the page looks. CSS is static, and for the
dynamics on this page you need JavaScript.

CSS is not a substitute for JavaScript, nor vice versa. If you want
this kind of solution, use JavaScript.

-- 
-------------------------------------------------------------------
ppk, freelance web developer

Bug Report: Report bugs yourself, or comment on previously 
reported ones.
http://www.quirksmode.org/bugreports/
------------------------------------------------------------------
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: