Vertically Fixed Position?

Is there a way to force an image to be vertically fixed but not horizontally?  I need this because i am creating a side scrolling web page and need an image to move up or down when a browser is re-sized.  If the position is fixed, the page does not scroll left or right so i just need it to be fixed vertically.  

Thanks in advance
Miles1317Asked:
Who is Participating?
 
AnimasuCommented:
If you know the size of the image it is simple, First you need to get the size and halve it, I'll use 500x500px for example
Make a div which will hold the image and position it like so
CSS //
.image{position:absolute;top:50%;margin-top:-250px;background:red;}
HTML//
<div class="image"> Place the image here </div>

Ignore the background red, its just to see where abouts it ends up. You can add widths & heights if you want to but its not nessecary

Regards
0
 
quincydudeCommented:
do u mean something like the following

position:fixed;
left:50px;
top:50px;
0
 
GaryCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.