danielstocks / jQuery-Collapse

A lightweight (~1kb) jQuery plugin that enables expanding and collapsing content
http://webcloud.se/jQuery-Collapse/
MIT License
679 stars 153 forks source link

Bootstrap's "hidden-phone" "visible-phone" classes & jQuery-Collapse #50

Closed trante closed 11 years ago

trante commented 11 years ago

I want my content opened default if user came with his desktop/tablet. I want my content to collapsed default, if user came with his smartphone.

I use "hidden-phone" and "visible-phone" classes of Twiter Bootstrap to serve different behavioured pages to my visitors.

How can I integrate this with jQuery-Collapse plugin? I don't prefer to fire it from JS, I need to do it from CSS. Thank you very much.

danielstocks commented 11 years ago

There isn't really any good way to do it from CSS; you'll have to do it from JS, sorry.