Visible-desktop is also visible on a phone
Using this I expected the div to be hidden on a phone, but it's not. Am I misunderstanding how these (http://twitter.github.com/bootstrap/scaffolding.html#responsive) work?
div class="span4 visible-desktop"
from what i understand of how the classes work..
.visible-desktop is using media queries to know size.
have you added the below to your head? also what device? media queries are CSS 3 so most likely wont work on older phones and certain browsers (without some kind of javascript helper such as RespondJS).
<meta name="viewport" content="width=device-width, initial-scale=1.0">
I am also assuming you are using the responsive version of bootstrap, ie responsive.less which sets up these classes.
See https://github.com/twitter/bootstrap/issues/2564
Adding !important to all "display:none" selectors on visibility utilities (responsive.less) solve that kind of problem for me.
The reason this happens is that all "span_" classes will have "display: block" set when width falls below 767px, so the visible-classes don't work well on elements that also have a span_-class attached.
The !important fix is probably the right way to go, I think.
Thanks!
Resolved in 2.0.3-wip with a huge update on the utilities classes: https://github.com/twitter/bootstrap/commit/a7b8e52f8e08cc821d7324153885c085fad25c1a