

Since its release, it has changed the way icons are being used in web today.

IcoMoon was first built and released back in the November of 2011. The IcoMoon app lets you build and use your own icon packs in many different formats including SVG, Polymer, PDF, XAML, CSH, icon font with All of our icons are designed on a precise pixel grid. IcoMoon's icon library features only the very best icon sets out there. But this time we do it with CSS instead of HTML as you can see in the code snippet below.IcoMoon is striving to build and provide the best iconography and icon management tool for perfectionists. This is similar to adding SVG to an HTML document using the tag. You can also update the original width and height directly.Įven though we can change the size of SVG images added via the tag, there are still some restrictions if you want to make major style changes to the SVG image. Note: to change the original size, you have to specify the width and height with CSS as you can see in the demo below. When you add an SVG image using the tag without specifying the size, it assumes the size of the original SVG file.įor instance, in the demo above, I didn't modify the size of the SVG image, so it assumed its original size (which was a width of 915.11162px and a height of 600.53015px ). If you did everything correctly, your webpage should look exactly like the demo below. To use this method, add the element to your HTML document and reference it in the src attribute, like this: Īssuming you downloaded the SVG image from unDraw and renamed it to happy.svg, you can go ahead and add the code snippet above into your HTML document. This method is the simplest way to add SVG images to a webpage. We will explore six different methods in this tutorial. There are several different ways to use SVG images in CSS and HTML. Rename it to happy.svg or whatever name you prefer. Now, open the SVG image in your favorite IDE or text editor. If you followed the steps above correctly, the SVG image should be on your computer now. On the pop-up window, click on the Download SVG to your projects button.In the search box, search for the word happy.If you want to work with the SVG image I've used in this tutorial, follow the steps (and diagram) below to download it.

How to download the SVG image used in this tutorial Now let's see how you can actually work with SVG images.
