True center align images inside a DIV on Hover - html

I have a DIV that I have put images that show up on hover. This is no problem, but getting them aligned vertically and horizontally is the real problem. I have messed with it for a few hours and it just won’t cooperate with me. I have tried all sorts of CSS but to no avail. Can someone please help me?
Here the current project: JS Fiddle
I tried the padding:auto and vertical-align:middle but neither worked.
I am trying to getthe image that appear on over to be vertically and horizontally aligned with the inner DIV. Any suggestions are welcome.

here is new updated jsfiddle see this. i changed in your css
http://jsfiddle.net/jkkheni/Zf5am/1091/

Related

Aligning center div

I built a bottom header with a toggle for a menu on the bottom. The toggle portion is not aligning with the <span> right next to it. It's almost exactly one line-height below for some reason.
Code - https://jsfiddle.net/odvd05d8/
I tried using margin but it moves the side divs as well. I also tried to clear whitespace as most of the elements are inline, but that didn't work either.
Any suggestions would be really helpful. Thank you sincerely.
you can use as in css as may it's help you
.dropdown{
top:-20px;
}

Div positioning broken by input

I'm having a problem achieving the layout for a website I'm designing.
There are three blue divs across the top of the page under which I have placed four red divs. Each of the red divs will take up just less than a quarter of the width of the page.
After putting an input field in the right most blue div the position of the red divs gets shifted to the right and some red divs appear below others.
I've tried changing the position properties on various divs but can't seem to restore the layout I wanted and have tried adding margins but to no avail.
Can anyone see the problem in my code and/or layout? Any help will be greatly appreciated, I've included all the code in a JSfiddle page.
Many thanks.
http://jsfiddle.net/4cb5za9y/
enter code here<style type="text/css">
There was simply a </div> missing after your input, which broke the layout. Here's the updated fiddle.

centering (horizontally and vertically) <ul> in navbr div

I know this has been addressed previously, but for the life of me I can't get it to work with my code (yes, I'm new to this so please be gentle, and do let me know if I am going against SO etiquette!).
Basically, trying to setup a navbar with links centered vertically that become highlighted when hovered over.
I got it setup by eyeballing it and adjusting the margins / padding, but surely there is a better way to to go about this.
Also, how do I go about centering the links horizontally as well?
Here's the relevant code.
http://jsbin.com/wekuqidu/1/
Thanks all!!!!
Here is an example using line-height, you can also try using table-cell to vertically align in the middle
http://jsbin.com/nagoposu/2/

How to Align right and fixed

I need a code to align an image to the right and fix it at the same time, so it's "fixed to the right." i can't seem to find how to do this, as I've searched already. Can someone provide me with one?
I prefer html....
use css code
img {postion:fixed;float:right;}
and parent should be position:relative;

How to achieve vertical div alignment in unique situation?

Go to my blog and please tell me how to achieve vertical alignment :( My situation truly is different and I need help :)
The reason this is so difficult is because holder is the div that contains everything, outer are the icons at the bottom, and tooltip are the divs that pop up. I need tooltip to be vertically aligned but they are actually below outer. Each icon is connected to their post so you can't keep them all in one div.
how about:
#holder{
bottom:50%;
}