0
Welcome Guest! Login
0 items Join Now

How to get certain parts of page to remain in static position on page?

  • How to get certain parts of page to remain in static position on page?

    Posted 18 years 1 month ago
    • I was looking at different templates, and noticed on like the trooper ones that the sides stay stationary while the content scrolls up or down. I was thinking, that would be great if on my oage I could make the side and the top login bar stay static on someones page while the conent of the site could be scrolled through. That way they had easy access to any of the options I put on that top bar like login, show cart, or whatever else I considered most important to be able to reach without having to scroll around the page to find it. So does anyone know how you would get like a side and top frame like effect, but without the frame look like the do with the sides of the trooper templates?

      Thanks,
      David Henderson
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: How to get certain parts of page to remain in static position on page?

    Posted 18 years 1 month ago
    • you need toset the divs they're in as:

      #top_div {
      position: fixed;
      }

      #div_on_the_right {
      position: fixed;
      }

      obviously it's a little more complicated than that, but thats the basic concept.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up

Time to create page: 0.048 seconds