new code at bottom of view source...

User 2176507 Photo


Registered User
214 posts

I edited a webpage that I created with VSD by inserting an image at the top of the page. I noticed (by looking at view>source) that VSD placed the html code for the photo at the bottom of the page even though it is at the top of the page. I wanted this photo to load first but it is loading last. How can I move the code to the top of the page so this photo will load first? If I place the different photos in a table would this help?

Thanks,
yeto
User 122279 Photo


Senior Advisor
14,650 posts
Online Now

You can't edit the code in VSD. Well, you can in some different code editor, but it will be gone again next time you open the file in VSD.

The various elements are added to VSD in the sequence that you add them. Therefore it's a very good idea to plan your pages well in advance if you want a specific opening sequence.

In this specific case only a new start from scratch, adding the page elements in the sequence you want them to open, will get the picture to open first.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2176507 Photo


Registered User
214 posts

Hi,

Thanks for taking the time to reply.

yeto
User 12758 Photo


Registered User
25 posts

Do you think this will be something CC would be able to add this functionality to allow you to control the sequence order? Just a thought.

Kirk
User 122279 Photo


Senior Advisor
14,650 posts
Online Now

I would welcome it, but I don't think so...

VSD places every element on a web page with absolute positioning. That means e.g. if you have inserted an element for the top of the page, but added it after a whole lot of other stuff, the markup will still tell the browsers that 'this thingie is supposed to be shown 5 pixels from the top and 20 pixels from the left edge (translated from CSS into normal speech). So in that there is no need for a more logical sequence.

We have often asked for the possibility to edit the code within the programme itself, and I mean the code that VSD puts in. For some reason that seems impossible because it would break the markup, or because it's not within the scope of what the module that VSD is developed from or some such thing.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



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.