Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8681953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:38:32+00:00 2026-06-12T21:38:32+00:00

Simply put, I want an image to move up and down and not left

  • 0

Simply put, I want an image to move up and down and not left and right.
I found this bit of jquery and changed it to help myself and it works in chrome and firefox, but Lord help me with IE (like always).

Trying to make it to this: http://demo.rickyh.co.uk/css-position-x-and-position-y/
the middle one. Works in chrome and ffox just not IE 9

    /*js*/
$(document).scroll(function(){
var $this = $(this);
$(".natface").css('left', 114 - $this.scrollLeft());
});

/*css */
.natface{
position: fixed;
left: 114px;
width: 88px;
height: 93px;
z-index: -2;
}   

This allows me to scroll up and down the page and have this image travel up and down, but when I make a window smaller and then scroll left to right, this makes it to where it won’t scroll right and left. This isn’t the case in IE sadly as even if I make the window smaller it still scrolls to the right when I scroll right.

If you can image a margin line box with an image that scrolls down the left side of it slightly over lapping it to look as if it’s speaking into the text box. That is my intention.

I’m very new to all this as well so it’s kinda of tough to know where I’m going wrong. Sorry first time jusing stackoverflow as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:38:33+00:00Added an answer on June 12, 2026 at 9:38 pm

    EDIT: You totally changed the question and now I’m a bit confused. I think your problem with position fixed and IE might be because you’re running in quirksmode. You need a strict doctype for position:fixed to work in IE.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    

    Leaving my old answer in here too:

    There’s the CSS property position:fixed, but this property isn’t supported on IE6 and iOS 4 I think.

    position:fixed JSFiddle http://jsfiddle.net/DLeYv/1/

    If you wanna use Javascript, something like this would make it scroll both horizontally and vertically:

    $(".natface")
      .css('top', 114 + $this.scrollTop())
      .css('left', 100 + $this.scrollLeft());
    

    This tells anything with the class .natface to scroll to the same amount of pixels as the window is scrolled (scrollTop) and then another 114 pixels down, and the same amount as scrolled left.

    For this to work the .natface element needs to have a position of “absolute” and not be inside any other positioned elements (as in directly inside the <body> tag).

    JSFiddle http://jsfiddle.net/DUnUm/2/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simply put I want what http://www.reddit.com/ and http://news.ycombinator.com/ have to the left of every
I want to simply put an image button inside my PHP without using any
Put simply, I want to select all data in two columns from each of
Simply put, I'm getting this error in the Product Admin of Magento after adding
I have a simple button and I want to put an image inside, so
I simply want to upload an image to a server with POST. As simple
I want to put an uploaded image into a canvas and work with it.
I want to convert a 24bit RGB image (8 bit for each channel) 8
I want to put together simple TCP server using Python and Twisted. The server
I want to write a simple applet to put in a tray. Let's say

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.