{"id":2973,"date":"2020-04-08T18:26:24","date_gmt":"2020-04-08T18:56:24","guid":{"rendered":"https:\/\/ultering.com\/it4us\/?p=2973"},"modified":"2020-04-11T19:49:28","modified_gmt":"2020-04-11T20:19:28","slug":"how-to-use-icons-with-bootstrap-or-other-framework","status":"publish","type":"post","link":"https:\/\/ultering.com\/it4us\/?p=2973","title":{"rendered":"WEB DESIGN: USING ICONS WITH BOOTSTRAP OR ANOTHER FRAMEWORK"},"content":{"rendered":"<h3><\/h3>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a05169288d95\" class=\"ez-toc-cssicon-toggle-label\"><span class><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\" \/><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\" \/><\/svg><\/span><\/span><\/label><input type=\"checkbox\" id=\"ez-toc-cssicon-toggle-item-6a05169288d95\" checked aria-label=\"Toggle\"><nav><ul class=\"ez-toc-list ez-toc-list-level-1 \"><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ultering.com\/it4us\/?p=2973\/#TARGET\" title=\"TARGET:\">TARGET:<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ultering.com\/it4us\/?p=2973\/#NOTE\" title=\"NOTE:\">NOTE:<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ultering.com\/it4us\/?p=2973\/#HOW_TO\" title=\"HOW TO\">HOW TO<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"TARGET\"><\/span>TARGET:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Use images for buttons or anything else applicable.<br>\nThe images used on this example are from <a href=\"https:\/\/freeicons.io\">freeicons.io<\/a><\/p>\n<p>Another good site to provide free icons is <a href=\"https:\/\/thenounproject.com\">thenounproject.com<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><noscript><img decoding=\"async\" class=\"alignnone size-full wp-image-2986\" src=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example.jpg\" alt width=\"1343\" height=\"275\" srcset=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example.jpg 1343w, https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example-300x61.jpg 300w, https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example-768x157.jpg 768w\" sizes=\"(max-width: 1343px) 100vw, 1343px\"><\/noscript><img decoding=\"async\" class=\"alignnone size-full wp-image-2986 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201343%20275%22%3E%3C%2Fsvg%3E\" alt width=\"1343\" height=\"275\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201343%20275%22%3E%3C%2Fsvg%3E 1343w\" sizes=\"(max-width: 1343px) 100vw, 1343px\" data-srcset=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example.jpg 1343w, https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example-300x61.jpg 300w, https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example-768x157.jpg 768w\" data-src=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2020\/04\/rin544d_todos_edit_icons_example.jpg\"><\/p>\n<h4><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"NOTE\"><\/span><strong>NOTE:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>This method may be used for other frameworks or without any specific one.<\/p>\n<h4><\/h4>\n<h3><span class=\"ez-toc-section\" id=\"HOW_TO\"><\/span>HOW TO<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>1. Create a .css file containing a background image to each icon image and a common configuration class.<\/strong><\/p>\n<p>Name it &#8220;free-icons.min.css&#8221;.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. edit and add the code below:<\/strong><\/p>\n<pre class>.icon-config{background-repeat:no-repeat;display:inline-block;vertical-align:text-bottom;border: 0px !important; border-color: transparent !important; background-color: transparent !important;}\n.icon-edit28{background-image:url(\"..\/img\/icon-edit_28.jpg\");height:28px;line-height:28px;width:28px;}\n.icon-create28{background-image:url(\"..\/img\/icon-create-28.jpg\");height:28px;line-height:28px;width:28px;}\n.icon-delete28{background-image:url(\"..\/img\/icon-delete-28.jpg\");height:28px;line-height:28px;width:28px;}\n.icon-update28{background-image:url(\"..\/img\/icon-update-28.jpg\");height:28px;line-height:28px;width:28px;}\n\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3. Create each icon image having for each <em>.icon-nameSIZE<\/em> class and set its background image class.<\/strong><\/p>\n<p>In this example using .icon-edit28 class requires a image of size=28px:<\/p>\n<pre class>icon-edit28{background-image:url(\"..\/img\/icon-edit_28.jpg\");height:28px;line-height:28px;width:28px;}\n<\/pre>\n<p>&#8211; For an image with size=30px, we create a new size class as follows:<\/p>\n<pre class>icon-edit30{background-image:url(\"..\/img\/icon-edit_30.jpg\");height:30px;line-height:30px;width:30px;}\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>4. In the web page, do:<\/strong><\/p>\n<p>&#8211; using bootstrap:<\/p>\n<pre class>&lt;div class=\"col-md-2\" style=\"text-align: center;\"&gt;\n&lt;button type=\"button\" id=\"btn_&lt;%=sdo.i_id%&gt;\" formaction=\"\" class=\"btn btn-primary icon-config icon-edit28\" style=\"margin-top: 13px;\" onclick=\"saveItem(this)\"&gt;&lt;\/button&gt;\n&lt;\/div&gt;\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><em>@FROM: lab &#8211; draft project N. rin544d<\/em><\/p>\n<p>&nbsp;<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>TARGET: Use images for buttons or anything else applicable. The images used on this example are from freeicons.io Another good site to provide free icons is thenounproject.com &nbsp; NOTE: This method may be used for other frameworks or without any specific one. HOW TO 1. Create a .css file containing a background image to each &#8230; <a href=\"https:\/\/ultering.com\/it4us\/?p=2973\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &#8220;WEB DESIGN: USING ICONS WITH BOOTSTRAP OR ANOTHER FRAMEWORK&#8221;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[143],"tags":[169,172,140,170,168,173,171],"class_list":["post-2973","post","type-post","status-publish","format-standard","hentry","category-web-design","tag-bootstrap","tag-button","tag-css","tag-icons","tag-images","tag-links","tag-web-design"],"_links":{"self":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/2973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2973"}],"version-history":[{"count":6,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/2973\/revisions"}],"predecessor-version":[{"id":3025,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/2973\/revisions\/3025"}],"wp:attachment":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}