"Menu bar showcasing various products and services in the

Is there a way to design a menu similar to the one on this website using bootstrap 4?

https://i.sstatic.net/2wkck.jpg

The menu layout features categories on the sidebar and collapses in mobile view. How can I achieve this with bootstrap 4?

Answer №1

Although your question may seem a bit abstract, I will break down the main concepts you need to understand.

When using Bootstrap 4, you have the option to create a menu either from a Button Group or a Vertical Navigation. By styling these correctly, you can customize the menu to match your design requirements.

For the mobile version where the menu collapses, all you need is for the "hamburger button" at the top to toggle the sliding of the menu (potentially through javascript) and ensure that on mobile devices, the menu starts off hidden. This can be achieved using CSS viewport rules or with the help of a javascript plugin such as this plugin which specifically caters to this functionality. (I am not affiliated with this plugin)

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

a guide on verifying the presence of a tag with a specific title attribute in HTML using PHP by Ganon

I have a code snippet here in which the variable raw contains an HTML string with multiple "a href" tags, each with different title attributes. My goal is to check if this string contains a hyperlink tag with the title "x". How can I achieve this using G ...

Removing parent elements with JQuery

I have a piece of third-party HTML that I need to work with: <tr> <td> <asp:Label ID="lblURL" AssociatedControlID="txtURL" runat="server" EnableViewState="false" CssClass="FieldLabel" /> ...

Ways to implement a filter pipe on a property within an array of objects with an unspecified value

Currently, I'm tackling a project in Angular 8 and my data consists of an array of objects with various values: let studentArray = [ { Name: 'Anu', Mark: 50, IsPassed: true }, { Name: 'Raj', Mark: 20, IsPassed: false }, { Na ...

The Sendgrid email is successfully sending, however it lacks the inclusion of the form data

After receiving the email, I noticed that some of the data (such as name, email, phone, subject, and message) is missing. <?php $url = 'https://api.sendgrid.com/'; $user = 'username'; $pass = 'password'; //HTML grab $nam ...

A guide on utilizing Node.js and Express to read a text file and convert it into an HTML table

As a Node.js developer using Express, I am delving into the realm of Javascript for the first time. My goal is to parse a text file and extract specific data from it to display in an HTML table. Currently, I can successfully open and read the file using fs ...

Modifying button appearance based on state change in AngularJS

I have a button with a grey color and I want to create two different states for it: one that is selected (blue) and another that is in an idle state (grey). Currently, I am working on Angularjs but I am fairly new to this platform. Could you kindly provid ...

Dynamic element substitution

Can you provide guidance on how to create a smooth transition in the height of a container based on the child element's height? Currently, my code does not include any animation effects. setTimeout(() => { document.getElementById("page1").st ...

Ways to retrieve HTML content from various spans and incorporate the values as classes

Here is my custom HTML: <div class="box"> <ul class="fourcol first"> <li class="feature-item">Description: <span>0</span></li> <li class="feature-item">Description: <span>0</span></ ...

What is the best way to align navigation arrows vertically?

I am working on a modal album that displays images of various sizes. My issue is with styling the navigation arrows to appear in the center of the page, regardless of the image size. I have included my code below: <div class="row img-box"> <d ...

detect mouse click coordinates within an iframe that spans multiple domains

I am currently encountering an issue with tracking click position over a cross-domain iframe. Here is my current code: <div class="poin"> <iframe width="640" height="360" src="http://cross_domain" frameborder="0" allowfullscreen id="video">< ...

Issue with CSS animation not maintaining its current position

After dedicating two months to learning CSS, I encountered a challenge with animation. Despite setting my code to finish at lime, the animation completes and the div reverts back to red. @keyframes example{ from{background-color: red} to{backgro ...

Two HTML elements positioned alongside each other with inline word wrapping

Apologies for the vague question title, which may not accurately reflect my requirements. This is one reason why I am struggling to find a solution through a simple Google search - I'm unsure of what terms to use. I am attempting to align some "label ...

Display a pop-up message asking for confirmation within a set duration?

Is there a way to display a confirmation dialogue that is set to expire after a certain time, triggering one of two actions if the user does not respond? Specifically, the confirmation should expire if the user: a) navigates away from the page b) fails t ...

What is the best way to align content in the middle of a containing div?

I am struggling with centering text and images inside a div that is 190px x 190px. Despite searching on various platforms, including SO and Google, I have not found a simple solution. Can someone please provide guidance on the easiest way to achieve verti ...

How can I retrieve the class's name rather than its content?

When looking to retrieve elements by their class name in JavaScript, document.getElementsByClassName() is a helpful method. However, is there a built-in JavaScript function that can return the name of the class itself? For example: var classElement ...

Switch between showing the Font Awesome TitleText and its associated Class with a single click

Can the value of the title attribute for <i> be toggled? For example, if the title is set to <i title="Favorite This Post" class="fa fa-star-o" aria-hidden="true"> within <div class="postoption"> I would like to toggle both the title te ...

Ruby on Rails slider bar functionality

Currently, I am developing a video-focused application using Ruby 1.9.2 and Rails 3.1. One of the key features I need to implement is a slider bar that allows users to adjust the total duration of a video in real-time. Despite my attempts to use HTML5 fo ...

The background-size:cover property fails to function properly on iPhone models 4 and 5

I have taken on the task of educating my younger sister about programming, and we collaborated on creating this project together. Nicki Minaj Website However, we encountered an issue where the background image does not fully cover the screen when using b ...

Styling hyperlinks upon exporting an HTML table to Excel

I am trying to export an HTML table to Excel using JavaScript by following the instructions provided in Export HTML table to Excel its downloading table contents to the Excel. However, I have encountered an issue where one of the columns in my table conta ...

What criteria do browsers follow to determine the specific colors to use for border styles like inset and outset?

When I set border: 1px outset blue; as the style for an element, the browser displays two distinct border colors: one for the top and left borders, and another for the bottom and right borders. li { border: 10px outset #0000FF; color: #FFF; ...