|
Post by mackrackit on Feb 29, 2008 15:37:08 GMT -5
I am stumped again and can not find the answer. I would like to load an image from the local machine with the html image tag. The image is in the project directory. Tried this and many more: html "<img src='wikilogo_red.png'>"
And or a background image from a local directory: CSSID #sec0, "{ Color: Lime; Font-Size: 12pt; Width: 100%; Height: 10px; Background-Image: wikilogo_red.png; Background-Color: RGB(60, 60, 60); Background-Repeat: Repeat-Y; }"
I can get both to work from an external machine but not from the local. What am I missing?
|
|
|
Post by mikeukmid on Feb 29, 2008 16:08:00 GMT -5
In the first case, should the image be in the public directory? It works for me if it is there.
html "<img src='/topbanner.jpg'>" 'displays the image
In the second case, I think the correct syntax for background-image is: Background-Image: url('wikilogo_red.png');
Give them both a try!
|
|
|
Post by mackrackit on Feb 29, 2008 21:07:36 GMT -5
Thanks Mike. For some reason I am having trouble getting a "handle" on the root directory structure. If the image is in the public directory or a sub directory of (public/images) these work. html "<img src='/images/wikilogo_red.png'>"
CSSID #sec0, "{ Color: Lime; Font-Size: 12pt; Width: 100%; Height: 90px; Background-Color: RGB(60, 60, 60); Background-Repeat: Repeat-Y; Background-Image: url('/wikilogo_red.png'); }"
|
|