TECRIDIBLE
adding image in css & using in "div class" style how? can anyone explain
VOLThor6
TECRIDIBLE You can add background images to almost any element with CSS like this:
.myDivBG {
background-image: url('path/to/image.jpg');
}
Copy code
I hope that helps.
TECRIDIBLE
VOLThor6 i know about bg bro but i am asking about icons like home, contact and using in div class
Graham
TECRIDIBLE Do you mean like this using ::before pseudo class
http://adgj.mw.lt/before
VOLThor6
Graham I usually add my 16px icons anywhere on my site with just the image IMG tag inside a SPAN because the pseudo class is not supported by some old browsers.
Graham
VOLThor6 I would just do it that way too