Using CSS, what is the most elegant way to vertical align a short title and a description, not using a table?

Take a look to this: Vertical centering with CSS The Method 2 (using negative margins) is the "classic" approach, I have used it a couple of times.

Oops, I didn't read about the fixed part, use Method 3. – Alberto Martinez Nov 5 '10 at 2:11 Definitely should look at the negative margins approach. Probably the best way I've found as well.

– Azmisov Nov 5 '10 at 3:31.

Check out this link and read this for some more info: Vertical centring text with CSS.

Actually... the non-hacked solution won't work in FF or Chrome: jakpsatweb. Cz/css/priklady/… A solution will be better if it is non-hacked for it to be more elegant – å‹•é? Œèƒ½é‡?

Nov 5 '10 at 3:20 if simplied, can see it at jsfiddle. Net/mn2CH/14 which won't center – å‹•é? Œèƒ½é‡?

Nov 5 '10 at 3:42.

The cleanest approach I've seen that supports older versions of IE is this method. Basically, for IE, it uses a clever method of having your main container, in your case it would be 500px by 60px, and then two inner containers - one is positioned relatively with top: 50% and the other being relatively positioned with top: -50%. Intuitively, one container is positioned half way down the main container, and then the other container is moved up by half it's own height.

And of course, for newer browsers, you can use the newer display attributes on arbitrary elements, which the above article also explains.

Actually... the non-hacked solution won't work in FF or Chrome: jakpsatweb. Cz/css/priklady/… A solution will be better if it is non-hacked for it to be more elegant – 動靜能針 Nov 5 '10 at 3:20 if simplied, can see it at jsfiddle. Net/mn2CH/14 which won't center – 動靜能針 Nov 5 '10 at 3:42.

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