Losing image when inserting html - VSD

User 271657 Photo


Ambassador
3,816 posts

I had this working just fine then I changed the size of this div and the image (back to top with arrow) no longer shows up. Here's what it used to look like:

http://i68.servimg.com/u/f68/14/58/51/55/backar11.jpg

When I preview in browser from the HTML Ed., everything is fine. When I insert the html into VSD, it previews fine except that the back to top image doesn't show. The cursor changes to a hand and the alt-text shows over an "invisible link" (which works). I've tried putting this image in just about every folder associated with this site - re-adding the image file each time. I've moved it so many time, I don't remember where it was (when it worked) before I changed the div size (this is a scrolling div).

Here's the div stuff:

<style type="text/css">
<!--
div.scroll {
height: 475px;
width: 550px;
overflow: auto;
border: 3px double #827d3e;
background-color: #ffffc4;
padding: 6px;
font-family: arial;
color: #373700;
line-height: 17px;
}

-->
</style>


<div class="scroll">


...And the image:

<a href="#salon services"><img src="../new website-v6_website/back_arrow.jpg" width="128" height="35" alt="back_to_top" title="back_to_top" border="0" align="" /></a>

</div>


The site is not live, so no link :(

This is my first attempt with the HTML Ed., so if there's some glaring error here - I won't see it :P
Any suggestions?
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 282670 Photo


Registered User
3,940 posts

Hi paintbrush ,
did you use the " add files" in VSD ?
I'm not much on coding myself, but is this what it's suppose to do?
http://www.myofficialnewbie.com/VSD
to sign on use ( coffeecup / coffeecup and on page 1




User 271657 Photo


Ambassador
3,816 posts

Hi Bruzer!
Every time I changed the image file location I deleted it from the site, did the remove files thing then started over with the HTML Editor. Clicked the image icon to find/add the image to the link at the bottom of the scrolling div (just like in your example), then in VSD, did the add file thing, deleted the old html object and used the html tool to add the changed div.
Why would changing the length of the div make the image invisible (but still clickable)? In the HTML Ed., it doesn't matter where it pulls the file from - it displays just fine. In VSD, no matter where I put it (it's in the VSD folder>files now), I can't get it to show up, although it still works just fine :P

So - for your example - where did you save the back arrow image in your site files/folders?
And thank you very much for the help with this! :)
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 282670 Photo


Registered User
3,940 posts

When you use the add files to add an image normally it will save it in the root ( outside the files folder) where my image is currently. If you add the image using the image tool it places it in the files folder, I'm sure you know...sorry but in the website folder




User 282670 Photo


Registered User
3,940 posts

Paintbrush I don't know why that would change, but for the code your using
<a href="#salon services"><img src="../new website-v6_website/back_arrow.jpg" width="128" height="35" alt="back_to_top" title="back_to_top" border="0" align="" /></a>

</div>

I would remove this part
../new website-v6_website/

then use the add files and see how it goes....




User 271657 Photo


Ambassador
3,816 posts

Bruzer - I had another look at your sample. I was going to copy/paste your code for the link/back arrow when it dawned on me :rolleyes:....yours didn't have the path back to the file location displayed. I took that off, leaving just the back_arrow.jpg and voila!
Now I know how I had it working a few days ago - too bad I couldn't remember that far back! :lol:

Thanks again!!!!

(Edit - we posted at the same time - I saw your answer right after I sent this :D)
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 282670 Photo


Registered User
3,940 posts

lol good job paintbrush, we both learned! :)





Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.