Classic Happy Relax Passionate Dreamless Halloween Photoshop Netscape DOS

Lately » vertical-align

Smilie I am a happy smiley!

It's all fine, but how do we align the smiley picture with the text?

One option that always worked is to create a table and throw the image and the text in two separate cells, apply valign="middle", and we are done. But that is an ugly solution.

The other option is to use vertical-align CSS property on inline-level elements that are children of another element.

Smilie I am a happy smiley!

All this is very nicely explained in Nicholas Gagne's article Vertical-Align Misuse.

:: Sasha, at 11:46 am on Monday, 13. March 2006

once upon a time Sasha told us that he will never put smiles on his site, plaque of the message boards :-)

:: zoka, at 01:38 pm on Monday, 13. March 2006

Yes, but this is an exception :-)

:: Sasha, at 05:44 pm on Monday, 13. March 2006

Post your scrawl




HTML tags are not supported. URLs are linked automatically.

Please enter :

Useless scrawling facts:

Top 5 scrawlers:
(updated once a day)
556 Sasha
488 zoka
316 vitez-koja
235 Davor
58 mungos