What is sr-only in Bootstrap 3?

Answer

Here is the styling used: (example)

.sr-only {
    position: absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border:0;}

Is it important or can I remove it? Works fine without.

It's important, don't remove it.

You should always consider screen readers for accessibility purposes. Usage of the class will hide the element anyways, therefore you shouldn't see a visual difference.

All twitter-bootstrap Questions

Ask your interview questions on twitter-bootstrap

Write Your comment or Questions if you want the answers on twitter-bootstrap from twitter-bootstrap Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---