Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts

    img's src equivalent in CSS?

    Hello,

    Just wondering is there any CSS equivalent available for img's src atribute? something similar to
    Code:
    img{
    src:url("image.gif");
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    no src is an element attribute not a style attribute...the closest u can get is background-image
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • The Following 2 Users Say Thank You to shyam For This Useful Post:

    abduraooft (10-24-2007), timgolding (10-24-2007)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •