Okay, may cause a minor arguement - but am dying to know what others think...
Should we be using CSS to create special effects and behaviours on websites?
The whole point of CSS is apparently to help seperate Content from Style... but a third piece is missing, Behaviour!
Now, I know I have done it in the past, am actually doing it on two current projects too... I'm using CSS for fancy Dropdown/Slideout/Popup/whatever-you-call-them menus.
I've done a few galleris too... hover over the thumbnail, and get a nice pop-up of a larger version.
But should this sort of thing be done with CSS?
Strictly speaking, it is not "styling", it is behaviour.
Additionally, from an Accessibility point of view, it tends not to make a lot of sense;
You have a Thumbnail, then a larger version of it .... next to it!
The menus end up presenting a huge list of links on larger sites.... which few of use would ever have dreamed of doing before hand... we would have done "click-through" navigation in stead (making them click through the levels the old fashioned way!)... instead some sites present well over 100 links ina big chunk!
So, what are peoples thoughts on this?
Should we seperate things and keep it "pure"...
- x/html for Content
- CSS for Styling
- JS/Flash for Behaviour
Or do you deem it perfectly fine to use CSS in such a manner ?