jquery - Maximage plugin Position:absolute -


i'm using maximage jquery plugin create fullscreen slideshow. plugin allows include html elements layered on top of background image. use html provide caption each image , have caption layered on top of site footer (separate maximage). have tried various positioning cannot find way this, caption behind footer due order of elements. have idea how might this? code follows after has been rendered maximage plugin -

<div role="main"> <img id="cycle-loader" src="img/ajax-loader.gif" style="display: none;"> <div id="maximage" class="mc-cycle" style="width: 1282px; height: 294px; overflow: hidden; display: block;"> <div class="mc-image " data-href="" style="background-image: url("img/showcase/1-redmire.jpg"); position: absolute; top: 0px; left: 0px; display: block; z-index: 8; opacity: 1; width: 1282px; height: 294px;" title=""> <div class="slide-caption"> <p>bespoke house in mercaston, derbyshire. image produced client issue.</p> </div> </div> </div> </div> <footer> <a id="arrow_left" href=""></a> <a id="arrow_right" href=""></a> <div id="controls"></div> </footer> 

and css -

footer { bottom: 0px; position: fixed; width: 100%; background: url(../img/bg-black.png) repeat; color: #fff; height: 55px; line-height: 55px; border-bottom: 1px solid #333; } .slide-caption { position: fixed; z-index: 998; bottom: 20px; left: 20px; color: #ffffff; background: #000000; padding: 5px; } 

your problem seems 1 general html style limitations. general rule when working z-indexes z-index elements on same level in document tree: in example, z-indexing div[role="main"] , z-indexing <footer>. modern browsers can accomplished block level elements, inconsistent if trying accurately fallback older browsers or positioning elements absolutely (this why henrik unable replicate issue). not know of way slide foreign element in between absolutely positioned parent , child element... if does, please let me know.

the easiest solution can see pull caption out , write dynamically footer jquery. can done cycle's before() , after() animation callbacks (http://jquery.malsup.com/cycle/options.html).

i have dummied example in jsfiddle: http://jsfiddle.net/edr4v/1/

hopefully helps.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -