position:fixed;

User 231388 Photo


Registered User
5 posts

It's been a while since I dabbled in html code. I needed to make the header on my sire I designed stay in place while i scrolled the page. I started by changing one element to position fixed by using the html editor and resaving the html file. but low and behold it still moved with the page. Is there anything else I need to change with the position tag?
User 2088758 Photo


Senior Advisor
3,087 posts

Hi Robert,

From what I understand you will not be able to accomplish this from within the program. VSD builds websites using absolute positioning by default. You can modify the html pages after you export your website with VSD however I do not recommend it as you will have to go in and make these changes everytime you make a change and re-export.

Maybe someone else will chime in here and correct me if I'm wrong, but I'm pretty sure its not possible.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 231388 Photo


Registered User
5 posts

So I make the changes, save the vsd file, move the html file for that page to the server and edit it to be position:fixed; there. However every time I move that html page I need to do this?

Is that correct?
User 231388 Photo


Registered User
5 posts

or did you mean that every time I publish the site? I have already saved the vsd, made the changes and then published and that still doesn't work. So I made the changes published and gone back in to look and it still shows fixed.
User 2088758 Photo


Senior Advisor
3,087 posts

Thats exactly what I am saying. You cannot make and retain the changes as the core to VSD is based on fixed or absolute positioning. You will have to modify the html pages every time you make a change.

Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 38401 Photo


Senior Advisor
10,951 posts

basically you cannot alter anything on the files "outside" of VSD and retain those changes if you make any changes in VSD. VSD will overwrite those pages each time you upload which means it will make all your changes disappear. Best thing to do is create yourself a little snippet somewhere (CoffeeCup HTML Editor comes to mind) and then reinsert it each time you update the site with VSD. You can make those changes in the HTML Editor "before" you upload it, you don't have to do it after you upload it. You'll just have to redo the changes with each VSD update that you make to the site. :)
User 2088758 Photo


Senior Advisor
3,087 posts

Jo Ann wrote:
basically you cannot alter anything on the files "outside" of VSD and retain those changes if you make any changes in VSD. VSD will overwrite those pages each time you upload which means it will make all your changes disappear. Best thing to do is create yourself a little snippet somewhere (CoffeeCup HTML Editor comes to mind) and then reinsert it each time you update the site with VSD. You can make those changes in the HTML Editor "before" you upload it, you don't have to do it after you upload it. You'll just have to redo the changes with each VSD update that you make to the site. :)


Well said Jo Ann,

Do you think that will work with his particular situation. He wants to make his header float down with the page. I didn't think you could do that with VSD.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

This will give you some ideas. Let us know if you need a bigger push.:)
http://progrower.coffeecup.com/fixednav.html
Try the footer and change the .footer to .header in the html and css. In the css change bottom:0px to top: 0px
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2147626 Photo


Ambassador
2,958 posts

VSD can do a lot more than most folks realize. You just have to adjust the code 'within' VSD. Just follow Eric the Codeman! :D
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2088758 Photo


Senior Advisor
3,087 posts

Oh wow thanks Eric! See I learned something new today.

@Gunsmoke you are right on there. I have done lots with VSD outside of the box i just didn't know you could do this!
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA

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.