View Single Post
Old 08-30-2010, 01:55 PM   #5
alexvallette
Member
alexvallette began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2010
Location: FRANCE
Device: iphone/ipad
Is there a way with css3 to force an image to take all the room of an "iphone/ipad" page both in landscape and portrait.
And in addition to be sure that the sound reader of the <audio> tag is placed above?

I tried to use the element zindex, but it doesn't work and always display sound reader on top of the image and not above.

HTML:
<body>

<div class="wrapper" align="center">
<a id="pic1"/><audio class="centerSound" src="sons/1.m4a" controls="true" autoplay="false"/>
<img class="centerImage" src="images/big1.jpg" alt="Le Petit Chaperon Rouge" title="Le Petit Chaperon Rouge"/>
</div>
</body>

and CSS:
.centerSound {
height: 100%;
z-index:1;
position:absolute;
}

.wrapper {
clear:both;
padding-bottom: 5%;
position:relative;
padding-top: 1em;
page-break-before:always;
}

.centerImage {
height: 100%;
z-index:-1;
position:absolute;
}

In addition to my "on top"/"above" problem, I also see that the image is dsiplayed on 2 "pages" in landscape mode (90% on page 1 and 10% on page 2)

Sorry for those silly questions but we are experimenting to find the rendering requested.

I hope the 2 images attached will explain a litlle more my questions

Click image for larger version

Name:	IMG_0172.PNG
Views:	386
Size:	383.6 KB
ID:	57398

Click image for larger version

Name:	IMG_0173.PNG
Views:	377
Size:	121.5 KB
ID:	57399
alexvallette is offline   Reply With Quote