Topic: Height Problems
I am having a terrible time getting my galleries to properly size in height. They always go to 100% size, even when contained inside a smaller div. Maybe I'm overlooking something totally simple (I probably am), but I'm at my wits end.
Here is my testing gallery:
http://unitychristian.net/gallerytest/volleyball2.php
As you can see, the gallery extends off-screen no matter the size of the browser window. I want it to resize to stay all inside the window. I was able to get width to work, but height never obeys. Technically the gallery part will, but the background always extends downward past the end of the parent div and ends up overlapping the bottom bar across our webpage. I got it to not overlap by making my parent div taller, but that really isn't the solution I need. I need it to resize properly.
Here is my embed code if it helps:
<div id="juicebox-parent-uchs" style="margin-bottom: 100px;">
<script src="volleyball2/jbcore/juicebox.js"></script>
<script>
new juicebox({
baseUrl : 'volleyball2/',
containerId : 'juicebox-container',
galleryWidth : '100%',
galleryHeight : '95%',
backgroundColor: '#222222'
});
</script>
<div id="juicebox-container"></div>
</div>
<style>
.jcbx-glry-classic {
/* Firefox */
width: -moz-calc(100% - 165px) !important;
/* WebKit */
width: -webkit-calc(100% - 165px) !important;
/* Opera */
width: -o-calc(100% - 165px) !important;
/* Standard */
width: calc(100% - 165px) !important;
position: absolute;
}
</style>
<!--END JUICEBOX EMBED-->
Any help would be greatly appreciated. As I said I'm probably overlooking something simple. But the simple changes I see like "galleryHeight" in the embed don't seem to work. The background of the gallery still extends too far, while the gallery shrinks.
Thanks
Cole