What is sr-only in Bootstrap 3?
Posted
by
kanarifugl
on Stack Overflow
See other posts from Stack Overflow
or by kanarifugl
Published on 2013-11-03T21:51:16Z
Indexed on
2013/11/03
21:53 UTC
Read the original article
Hit count: 292
html
|twitter-bootstrap
I wonder what the class sr-only
is? Is it important or can I remove it? Works fine without and no explanation is given in the documentations.
Here's my example:
<div class="btn-group">
<button type="button" class="btn btn-info btn-md">Departments</button>
<button type="button" class="btn btn-info dropdown-toggle btn-md" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Sales</a></li>
<li><a href="#">Technical</a></li>
<li class="divider"></li>
<li><a href="#">Show all</a></li>
</ul>
</div>
© Stack Overflow or respective owner