Search
 
SCRIPT & CODE EXAMPLE
 

CSS

replace icon with image css

i.icon:before {
    content:"";
}

i.icon {
    background-image:url(''); /* Image url */
    width: 25px;/* Width of the icon */
    height: 25px; /* Height of the icon */
    display: inline-block;
    background-position: center;
    background-size: contain;
}
Comment

PREVIOUS NEXT
Code Example
Css :: kerning css 
Css :: css change background color of page 
Css :: how many fonts can i add in a css font-face 
Css :: css calc 
Css :: how to disable margin collapsing 
Css :: how to change another element on hover 
Css :: h2 custom font family html css 
Css :: putting picture shaddow in css 
Css :: 3 line after dot in css 
Css :: css grid span columns 
Css :: css vw scrollbar 
Css :: javavscript use .filter to return odd numbers in an array 
Css :: text orientation css 
Css :: hover border bottom css fixed 
Css :: how to make all the columns equal size with flexbox 
Css :: css_background_img 
Css :: css prevent text wrap 
Css :: css transform size 
Css :: select even child css 
Css :: placeholder text css 
Css :: Pack lines toward the center of the flex container 
Css :: rotate favicon css 
Css :: how to give background overlay in css 
Css :: list decoration none 
Css :: css smooth scroll 
Css :: text outline in css 
Css :: how to put link at bottom of page html 
Css :: remove contact form 7 css 
Css :: css filters 
Css :: Vuetify v-data-table custom row hover background color (Light Theme) 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =