On the Bootstrap page itself, all of the headers and subheaders have a nice little anchor icon that shows up whenever you hover over the header; that icon provides a link to this header. I’d like to incorporate that into my own Bootstrap-based site, but I can find no documentation about it. Is this a standard mechanism in Bootstrap, or is it something separate they added to their documentation pages?
Question posted in Twitter Bootstrap
2
Answers
Looks like a custom CSS statement from their docs stylesheet:
This brings the opacity of the anchors from 0 to 75% on hover of the parent element. You’d generate the links with your server-side app and apply similar styling in your custom stylesheet.
Core Boostrap styles are shown as being from
boostrap.min.css
in your browser’s inspector, and custom docs styles are indocs.min.css
. If you’re not familiar with the use of your browser’s inspector, now’s the time. It’s an invaluable tool.Bootstrap’s documentation uses Anchor.js to add those links & icons. It is not part of Bootstrap itself.