Reputation: 27713
I need something like this http://jonraasch.com/blog/a-simple-jquery-slideshow
but w/o the absolute positioning. Is it possible?
If not, how do I deal with the absolute positioning - if I make it centered for one screen res, it won't be for another. Any tips?
Upvotes: 2
Views: 3727
Reputation: 114377
Whenever you need to place on image on top of another you can do it in one of two ways:
1) Use absolute positioning
The slideshow should be contained within a wrapper element that has position:relative
, then the contents of the slideshow use position:absolute
. The layout will not be affected because the "absolute" elements are within, and relative to, the wrapper, not the rest of the page.
2) Use one image on top of an element that has a background image
You can make a slideshow easily this way:
Upvotes: 5