I have such code snippet:
<div class="alert alert-info">Today's news
<div class="pull-right"><a class="btn btn-small" data-toggle="collapse" data-target="#newsDiv"><i class="icon-chevron-down"></i></a></div>
</div>
<div id="newsDiv" class="collapse in">
Today something happened<br>
Also yesterday happened<br>
Maybe tomorrow<br>
</div>
jsFiddle: http://jsfiddle.net/gfUXW/
I want this behaviour: When user visits with phone (width 480 px and below) collapse will be closed, when user visits with a bigger device collapse will be opened autmatically.
To make it responsive I need to do by CSS rules. But I couldn't figure how can I join responsive classes of bootstrap like "visible-phone" and "collapse in" class.