Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create responsive Breadcrumbs in materializecss?

Tags:

small or mobile screen breadcrumbFull screen breadcrumbI am using materializecss for front end In my jsp pages, I am using Breadcrumbs for show information on top of the page it's working fine but whenever I seen my pages on mobile browser or small screen then whole Breadcrumbs is not showing. So how to make responsice any suggestion ?

<div class="section" style="padding-bottom:0;">             <div class="row">                 <nav class="breadcrumb-nav col l12 truncate" style="height:40px; line-height: 40px;">                     <a class="breadcrumb" href="<c:url value="/"/>">Home</a>                     <a class="breadcrumb" href="<c:url value="/${currentCityName}"/>">${currentCity.name}</a>                     <c:forEach items="${breadCategories}" var="c">                         <c:set var="puri"><catalog:CategoryUri category="${c}"/></c:set>                         <a class="breadcrumb" href="<c:url value="/${currentCityName}${puri}"/>">${c.name}</a>                     </c:forEach>                                     <a class="breadcrumb" href="javascript:;">${product.name}</a>                 </nav>                                </div>         </div> 
like image 683
Bhagesh Arora Avatar asked May 07 '16 08:05

Bhagesh Arora


People also ask

Is materialize responsive?

Materialize has several classes to make images and videos responsive to different sizes. responsive-img − It makes an image to resize itself based on the screen size. video-container − For responsive container having embedded videos. responsive-video − Makes HTML5 videos responsive.

What is bread crumbs in html?

A breadcrumb navigation provide links back to each previous page the user navigated through, and shows the user's current location in a website. Home.

What is materialize in CSS?

Materialize CSS is a design language that combines the classic principles of successful design along with innovation and technology. It is created and designed by Google. Google's goal is to develop a system of design that allows for a unified user experience across all its products on any platform.


1 Answers

In my opinion, for the mobile device you can ignore the breadcrumb part as it doesn't looks nice on a mobile screen. Hence, it would be a waste of space.

e.g.:

@media only screen and (max-width : 992px) {    .breadcrumb-nav {       display:none;    } } 

Or you can also decrease the font size of your breadcrumb:

@media only screen and (max-width : 992px) {    .breadcrumb-nav {       font-size:;    } } 
like image 95
Rahul Malhotra Avatar answered Sep 28 '22 01:09

Rahul Malhotra