I have a div that contrains 3 images. The images are flexible depending on the size of the div, however they are overflowing. It works in full screen nicely but not well outside fullScreen.
Here's what it looks like before fullScreen:
HTML:
<div id="controls">
<button id="playButton">Play</button>
<div id="defaultBar">
<div id="progressBar"></div>
</div>
<button id="vol" onclick="level()">Vol</button>
<button id="mute">Mute</button>
<button id="full" onclick="toggleFullScreen()">Full</button>
</div>
<div id="playlist" class="animated fadeInRight">
<div class="thumb"><img src="TbGow.jpg" /></div>
<div class="thumb"><img src="TbLast.jpg" /></div>
<div class="thumb"><img src="TbTwo.jpg"/></div>
</div>
CSS:
#playlist{
position:absolute;
display:block;
border:1px solid red;
height: 90%;
width: 30%;
top: 0px;
right: 0px;
z-index: 2;
float:right;
padding: 2px;
margin: 2px;
color:white;
opacity: 0;
}
.thumb img{
max-width: 85%;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 2px solid white;
opacity:0.1;
}
Basically how to I make the children element fill but fit within the parent div (either in or out of fullscreen.