Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make breadcrumbs responsive?

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

like image 434
Smitha Avatar asked Nov 15 '13 03:11

Smitha


People also ask

How do you make dynamic breadcrumbs in HTML?

HTML lists like <ol>,<ul>,<li> are used to create the navigation links. Breadcrumbs dynamic navigation is implemented using various JavaScript functions like jQuery prepend(),clone() and click() methods.

How do you make breadcrumbs navigation?

Step 1: We simply add aria-label=”breadcrumb” to the nav element. Step 2: We next add class=”breadcrumb-item” in the list elements. Step 3: Add class=”breadcrumb-item active” in the current list element.

How do you change breadcrumbs to dividers?

Dividers. Dividers are automatically added in CSS through ::before and content . They can be changed by modifying a local CSS custom property --bs-breadcrumb-divider , or through the $breadcrumb-divider Sass variable — and $breadcrumb-divider-flipped for its RTL counterpart, if needed.


1 Answers

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.

like image 62
Franck Valentin Avatar answered Oct 15 '22 19:10

Franck Valentin