Image vertical align with css - strange?

The reason that the t makes a diffence, is because images are treated differently if they are the only element, or if they are part of a text How images are treated as single elements depend on the rendering mode of the page. In the beginning images as single elements were treated as block elements, and that behaviour is retained in certain sitations to be backwards compatible. You should put a proper doctype on the page, so that it's not rendered in quirks mode, if it doesn't solve your problem, at least it will make it behave more consistently.

The reason that the t makes a diffence, is because images are treated differently if they are the only element, or if they are part of a text. How images are treated as single elements depend on the rendering mode of the page. In the beginning images as single elements were treated as block elements, and that behaviour is retained in certain sitations to be backwards compatible.

You should put a proper doctype on the page, so that it's not rendered in quirks mode, if it doesn't solve your problem, at least it will make it behave more consistently.

Indeed with html transitional it doesn't work, but with doctype strict is working without the letter t. Thank you, even though this means that I can't use doctype transitional to align vertical an image with css... – JohnDel Sep 26 '10 at 20:07.

Instead of t character use it is an space. But I don't know why this happen. Any suggestion guys?

Furthermore this doesn't apply to aligning an image within the div. It applies to aligning it within the actual line its on within the given line-height... the same as its going to align the actual text of the div and other applicable inline elements. If this is the only thing in the div, then there is only a single line so you may get the result youre looking for... but if you set the height of the div to something taller than a single line you will to get the result you want.

– prodigitalson Sep 26 '10 at 19:52 I tried every possible combination with vertical-align but it doesn't work when I remove the t. I am wondering how is the right way to do it in CSS3 this one. – JohnDel Sep 26 '10 at 19:59.

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