Showing posts with label icon. Show all posts

Effortless Ways To Add Mobile Navigation Icons



More people are surfing the Internet via mobile devices these days, thus a few things on websites need to be adjusted to fit in those smaller screen sizes. This also includes Web Navigation.

The icon below, if you may, is the most popular icon to represent “mobile menu/navigation”.



In this post, we’ll take a look at several ways to add the icon and which way is easiest.


Using Bitmap Image


Everyone knows how to do it by way of the Bitmap image. We can simply create this icon in Photoshop, save it to image (probably in PNG or JPG format) and then assign it throughbackground-image in CSS.


However, bitmap images lack scalability. In particular, when we have to enlarge the image, it may turn blurry or pixelated. With the availabiity of high-resolution devices in the market these days, image scalability is one essential factor you can’t afford to overlook.
Bootstrap Way


This is how Bootstrap, a front-end development framework, displays the “navigation icon” in smaller screen sizes. It uses three <span> elements:




Although the desired icon may be achieved through styling, having extra markup for only displaying this tiny icon is considered redundant (especially if we comply to “best practices”).

So, let’s find a better way that require less markup

.
Using Font Icon

Another way to take is by using font icons. Several fonts provide this icon in their set, such as Font Awesome and EnTypo. To display the icon, we simply add the respective character, as demonstrated in this post.

Some advantages of displaying icon with fonts are that the icon is easy to alter through CSS and is resolution-independent. On the other hand, it also has some disadvantages: the file could be very large depending on how many characters are saved, and we need at least four different file formats to cover browser compatibility which is a lot of work to display just one icon.

“Trigram For Heaven”

Surprisingly, there is an HTML character called Trigram for Heaven. This is (probably) the best way I can find. Simply put this HTML character (&#9776;) and you should get this icon on your webpage.


We can then alter it with CSS, such as changing the color or resizing it without losing the sharpness and also linking to external sources. Furthermore, you can dive into this library to find more HTML special characters.

4300 Handcrafted Vector Icon Bundle [Deal]




Looking for more icons for your new design? Here is an icon bundle of more than 4000 icons from 13 icon sets. From glyphs to full-colored icons, you wil be sure to find the right icons for your design from the variety of themes the bundle has to offer




The icons are great for use for photography, travel, art, electronics, communications and more. Plus, as they are vector icons, you can easily resize them, customize them in style and color you want, without suffering any loss in quality.

File type are available as EPS or SVG files, and rasters in PNG format.


This icon bundle is available at a discounted price of $35 (original price: $99) for the next 10 days. Don’t miss out.
Related Posts Plugin for WordPress, Blogger...

- Copyright © 2013 All Ping