How to Create Hamburger Menu Icon Without Thrid Party Code
When making a responsive menu, we sometimes need to use a hamburger menu icon to toggle opening and closing for the menu list.
We can use font-awesome to get the icon.
If you don't want to use any third party library like font-awesome to display a hamburger menu bar, you can use the in-built HTML characters like the following:
| Symbol | Code | |||
|---|---|---|---|---|
| ☰ | ☰ | ☰ | ||
| ⚌ | ⚌ | ⚌ | ||
| = | = | = | ||
| ≡ | ≡ | ≡ | ≡ | ≡ |
| Ξ | Ξ | Ξ | Ξ | |
| ≣ | ≣ | ≣ | ||
How to Use
Just type in the code in HTML file.
☰ <!-- It will display ☰ --/>
Comments
Post a Comment