You are here:   Articles > CSS - cascading style sheets
  |  Login

Programming Articles

Minimize
13

This CSS code adds a background image.

.backimage { background-image:url(/images/imagefile.jpg);}

If you followed the instructions for How to Fix Problems in Internet Explorer that do not Happen in Other Browsers you could find the background image not working.

This is because the fix to IE requires that the url be in quotes, single or double quotes are fine. Change your CSS code to this. Notice the quotes around the file name.

.backimage { background-image:url('/images/imagefile.jpg');}

By Andrew Weitzen, Bronze Inc. (c) 2010

Bronze is the publisher of several online Internet journals including: InternetHandholding.com, DomainNames.gs, DotNetNuke.bz, Programmer.bz, Software.vg, WebHosting.vg

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

Programmer Newsletter

Minimize

Subscribe to the Internet Handholding newsletter



Reccomend Programmer.bz

Minimize

Share/Bookmark Bookmark and Share