I know this question has been done to death, so I'm really sorry that I have to ask it again but despite all of the information out there, I have found nothing that works for my specific circumstance.
I currently have a sidebar in FF for an extension. Within this sidebar, I have(for simplicities sake) 3 things.
<div id="resultsDiv">
<div class="imgContainer">
<img class="imgThumb" src="someCorrectURL"></img>
</div>
</div>
Now if this were it, there would be a couple of working solutions for vertically centering "imgThumb" within "imgContainer". However, my dimensions are max-height and max-width, as opposed to the regular height/width. At this point, I dont know what to do. I have tried probably 5 different methods that people back as functional for regular height/width and all have failed.
Some more information, the reason I included "resultsDiv" is because in reality there will be more than one image within it, which may also contribute to why the solutions aren't working. Below are how my CSS classes/ids are currently defined, and I shouldn't have any property currently in there that has no formatting purpose.
.imgThumb
{
max-width: 95px;
max-height: 95px;
padding: 5px;
cursor: pointer;
}
.imgContainer
{
width: 105px;
height: 105px;
float: left;
text-align: center;
margin: 2px;
border-bottom: 1px solid grey;
border-right: 1px solid grey;
background: #131313;
}
.resultsContainer
{
overflow: auto;
min-height: 750px;
}
Just to show what I'm talking about, I took a screen shot, this is using the above CSS only, http://i167.photobucket.com/albums/u130/MercilessShadow/ffext-cqsSS.png. As you can see the images that are wider than tall are floating near the top of the containers, I am trying to get them to the middle. Images 2 and 3 are examples of this.
If anyone can point me in the right direction for a functional solution I would be unbelievably grateful.