Reputation: 5863
I am quite new to web development, and recently, I have been wondering if it is possible to insert an image into a CSS table. The reason I would want to do this, is that, I do not want an user to right click on a picture and see "Save image as" or "View image". Not that my images are sensitive or copyrighted - it just does not look elegant.
For example, when I look at www.1and1.co.uk I have these three images in the middle: "Domains", "One and One Hosting" and "My business site". However, when any of these images are right clicked, I do not see "save image" or "view image". Can anyone tell me how to achieve this?
Sorry if the question is not of high intellectual content :(
Thank you for your time.
Upvotes: 1
Views: 2426
Reputation: 49703
Use the css attribute background-image
:
#my_element {
background-image:url(/images/my_image.jpg);
}
Upvotes: 2
Reputation: 7761
Simply you can achieve this through the css background-image
property.
Upvotes: 3