...

View Full Version : Center text vertically - solved.



Khensu
10-01-2007, 09:03 PM
Solved - I am indeed an idiot.

_Aerospace_Eng_
10-01-2007, 09:44 PM
It would be better to leave the problem and provide the solution rather than get rid of the problem. This forum is for everyone not just YOU. Someone else may have a similar problem.

I'm guessing though the solution was setting the line-height equal to the height of the element.

CaptainB
10-01-2007, 09:45 PM
Uhhhh.....good to hear. But what about to share the solution with us other, I'm sure quite a few of us would like to know how to do it ;) ..

EDIT Aero was a bit faster on the typing than me I see. lol

Khensu
10-03-2007, 10:57 PM
Sorry about that. Basically, I forgot about vertical-align ;) Hence my feeling quite the idiot :)

The problem: I wanted to center vertically in CSS, but in true 1990s style I tried to use "valign" as opposed to "vertical-align"...

Solution: use "vertical-algin" :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum