Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Sunday, December 02, 2018
Using a File on Your PC as the Background Image in CSS
body {
background-image : url("C:\path\to\file");
}
Seems right intuitively, except, it doesn't work. What does work? "file:///C:/path/to/image"
How should you know? Open the file in your browser first - and pay attention :)
Labels:
CSS,
html,
web development
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment