How to make breadcrumbs responsive?

Smitha picture Smitha · Nov 15, 2013 · Viewed 8k times · Source

I have used bootstrap3 for RWD and customized my breadcrumb. But, it's not fitting in mobile size.
How can I make it responsive?
Attached screenshot of the problem.

Thanks enter image description here

Answer

Franck Valentin picture Franck Valentin · Jun 17, 2014

I have created a snippet on bootsnipp that may fit your needs.

http://bootsnipp.com/snippets/featured/responsive-breadcrumbs

You can configure this breadcrumb to

  • display only the last n elements. Ellipses are added at the beginning of the list if elements are hidden.
  • set a maximum size for each elements. Ellipses are added after the label if it's too long.

By setting breakpoints you can set the number of elements to display and their maximum size for different screen sizes and hence make sure there won't be any overflow.