Cant get image in my editor notepad++
Hi, I put the following, in css.
then <body><img src="../Webtheme_files/girl1.gif"; width="238"; height="297";/></body>
nothing works, tried with "../Pictures/Webtheme_files/girl.gif'"; etc.
still doesnt work.
It seems to me that there are two separate issues here:
Originally Posted by wildguy2
1. The CSS code fragment is doing nothing. I.e. It does not associate the background with an id or element. See here for correct usage. E.g. If you wanted to declare a div called "test" and give it that background, you'd put in the CSS something like:
And in the HTML you'd have something like:
some foreground text or whatever...</p>
2. The HTML fragment you gave is completely irrelevant. You only need to explicitly mention the image in the HTML if you want to put it in the foreground, not the background. And if you did want to put the image in the foreground, the IMG element does not have semi-colons between the attributes. See here. E.g.
<img src="../Webtheme_files/girl1.gif" width="238" height="297" alt="girl" />
Note: The paths to the GIF files differ between the two examples. So you may need to check which (if either) is correct!!!
Thanks-solved. put gif and jpg and worked
Hi, thanks, looked on properties of the image and saw it had the gif. jpg and not just gif. I think it was jpg. but anyway, I put that part in the css and it worked, thanks, it took me 4 months, but I got it right now. thanks for the other info, it helps me greatly,
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)