1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Scrolling Image On Html

Discussion in 'Web Design & Development' started by Marksammut, May 3, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. Marksammut

    Marksammut Thread Starter

    Joined:
    Apr 14, 2010
    Messages:
    84
    Im trying to make an image scroll down with the webpage but its in a div box separate from, the background but i need it to move, Im using Dream weaver CS3 And Xp, does anybody have the code For something like this ?

    Cheers Mark
     
  2. andythepandy

    andythepandy

    Joined:
    Jul 2, 2006
    Messages:
    379
    Using the CSS rule
    Code:
    position:fixed;
    
    for the div that the image is in will make the image stay where it is on the screen, regardless of the scrolling

    Hope that's what you want
     
  3. Marksammut

    Marksammut Thread Starter

    Joined:
    Apr 14, 2010
    Messages:
    84
    Thanks For The reply but where would i place it

    <div class="style1" id="apDiv8"><img src="IMG_1513.JPG" width="400" height="600" /></div>
    </body>
    </html>

    thanks what i have at the moment

    so where would i have to place the position:fixed;
     
  4. andythepandy

    andythepandy

    Joined:
    Jul 2, 2006
    Messages:
    379
    Code:
    <div class="style1" id="apDiv8" style="position:fixed;"><img src="IMG_1513.JPG" width="400" height="600" /></div>
    </body>
    </html>
    That should do it

    Andy
     
  5. Marksammut

    Marksammut Thread Starter

    Joined:
    Apr 14, 2010
    Messages:
    84
    Ah Cheers It Worked !
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/920806

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice