image by using CSS

Discussion in 'CSS' started by Jalpari, Apr 30, 2007.

  1. #1
    can someone help me how i can put images by using css .
     
    Jalpari, Apr 30, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    kk5st, Apr 30, 2007 IP
  3. Webice

    Webice Peon

    Messages:
    49
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually is very simple:

    In the html code:
    <div id="pic"></div>

    In the css file:
    #pic{
    background:url(images/pic.jpg) no-repeat;
    width:100px;
    height:100px;
    }
     
    Webice, Apr 30, 2007 IP