Let's say I'm creating a website, and I put this image icon, and when I click on that image, open a menu,
/ a>Sorry if this is very obvious, but I only saw menus with lists, I researched and I did not find one that was in that style.
Let's say I'm creating a website, and I put this image icon, and when I click on that image, open a menu,
/ a>Sorry if this is very obvious, but I only saw menus with lists, I researched and I did not find one that was in that style.
This is an icon used to indicate the existence of a menu, which can be easily applied in your project using the css Bootstrap framework.
Bootstrap is a css that you add to your project. It contains various definitions of standard css rules for styling various html components.
This is a widely used framework on the market.
By default, on a website, we display the menu completely, however, when the device screen that is displaying this site does not have a suitable size for the full menu display, we apply the display of this icon to indicate the menu, so that by pressing the icon the menu items will be displayed vertically for better viewing by the user.
See the examples below:
1 - Full menu in standard (horizontal) view.
2-Menucollapsedindicatedbytheexistenceofthelisticon.
3-Menu(vertical)displayedafterclickingtheicon.
ItisimportanttounderstandthatthedisplayofthemenuiconisnotautomaticallyappliedbyBootstrap,aslongasyoufollowtheclassesdefinedinthisframeworkforcreatingyourmenu.
Thisbehaviorofdisplayingtheiconaccordingtothescreensizeofthedeviceiswhatwecallaresponsivelayout.Bootstrapapplieslayoutstootherelementsusingthatsameconcept.
IfyouwouldliketolearnmoreaboutBootstrap,seethe Bootstrap Framework
If you wanted to work with the above example, see the link: Menu Example with Bootstrap
If you are testing the Bootstrap example and would like to simulate the display on a mobile device, simply turn off your browser screen or use Chrome debugging in mobile mode.
On the example page, you can view the menu in your browser and also check the html, css and javascript codes used.
You have and you do not even have to create an image for it. Using FontAwesome you have hundreds of icons that you can use in applications, and with boostrap you have methods to make the menu without having to break your head a lot.
See an example:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"/>
<div class="pos-f-t">
<div class="collapse" id="navbarToggleExternalContent">
<div class="bg-dark p-4">
<h4 class="text-white">Collapsed content</h4>
<span class="text-muted">Toggleable via the navbar brand.</span>
</div>
</div>
<nav class="navbar navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>