I had created one HTML page for my experiance. In this i had use the background image like c:\documents ans settings…..\leftline.png.
But i don’t know how to add images from a common directory. (like background-image= (‘./images/leftline.png’). how i can do like this?
I had created one HTML page for my experiance. In this i had use
Share
The second line you have is a relative address, relative to the “thing” that is calling it.
So, say you have a webpage called “index.html” and it lives in
C:\My Documents\WebPages\My Page. You might also haveC:\My Documents\WebPages\My Page\images\leftline.pngNow, rather than type in “C:\My Documents\WebPages\My Page\images\leftline.png” we can simply use “images\leftline.png” in our index.html page. Why? Well, check the locations:
RELATIVE to index.html, leftline is only one directory away, so you can address relatively.