Tuesday, September 9, 2008

CSS Values - URLs

For CSS properties that accept URLs as their values, the URL specified in this format: url(protocol://server/pathname) . For example: #main {background-image: url(http://www.chetancrasta.com/images/texture.jpg)} Relative URLs can also be used:
#main{background-image: url(images/bg.gif)}
Relative URLs are relative to the path of the document that contains the CSS declaration. There should be no whitespace between url and (http://www... .

No comments: