Div element not aligning in the middle of another div element?

Set the line-height of user_box equal to the height of header Working demo: jsfiddle.net/AlienWebguy/pyppD.

This only centers the text inside #user_box, instead of the actual div. See: jsfiddle. Net/pyppD/1 – Josh Jul 24 at 22:53 That's all you had inside #user_box to center :) – AlienWebguy Jul 24 at 23:03.

Vertical align doesn't work with divs its for aligning elements in tables. In your case you could just use this #user_box { margin-top:25px; } /*110-60 = 50/2 = 25.

So I fiddled around with your code a little bit, and here's what I got: jsfiddle.net/3k8XE/ As you can see I'm using a table as the header, and applying the same id to each element, except the two inner divs have changed to td's. I've added an inner td to compensate the space between the two divs since they were originally set to float:left/right. (Of course the borders are just to show what's actually going on here.).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions