-
Select Topic AreaBug BodyGood day everyone! I'm new to GitHub Pages and I kind of suck at web development but wanted to host a very simple 41 line Expected behavior: Control horizontal position of the top image using ArrowUp/ArrowDown. Behavior on a Github Pages-deployed website: Pressing ArrowUp/ArrowDown applies a correct change in style to img1 element but it's not visible on the actual website. The top image does not move. Behavior on a tiiny.host-deployed website: Same as expected behavior. website (github pages): https://1hubert.github.io/vertically-misaligned-stereogram/ I'm really not sure what's wrong. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To make it work, you need to adjust the CSS and JavaScript parts: Set the position of img1 to absolute. |
Beta Was this translation helpful? Give feedback.
To make it work, you need to adjust the CSS and JavaScript parts:
Set the position of img1 to absolute.
Ensure that img1 is initially positioned where you want it.
Use top instead of left to control the vertical position.