Difficulty: Moderately Challenging
Things You’ll Need:
In-line Styles
Step1
Find the code for the element you wish to place an image in. In this case, it is
.
Step2
Insert the following code between the end of the opening tag of the element and the closing square bracket:
style = “background-image: url(image_url); width: X px; height: Y px;”
Where image_url is the URL of your remote image, X is the width of your image in pixels and Y is the height. So, in our example, our div would become:
Internal Style Sheet
Step1
Find the tag in the code of your Web page. It should be toward the top of the code.
Step2
Move the tag down one line. If the tag is situated on a line with other code, move it to its own line, and then move it down one more.
Step3
Insert the following code on the line above the tag:
Step4
Insert the following code between the end of the opening tag of the element and the closing square bracket:
class = “bri”
So, in our example, our div would become
Comments
webmiser said
on 1/14/2008 I know several laswsuit have come up from people linking to sites and using images illegally.
webzarus said
on 8/24/2007 Permission or not, Better check YOUR TOS from YOUR hosting company. If it violates YOUR TOS(Terms of Service), you can not only lose your website, but you can lose any fees associated with the site.
Many hosting companies have monitoring in place to see this almost immediately and will shut YOUR site down without asking YOUR permission.
They do not want to be hit with DMCA(Digital Millenium Copyright Act) lawsuits.