Help to place text middle vertical in a DIV

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Rippie
Forum Commoner
Posts: 76
Joined: Sun Jan 10, 2010 11:32 am
Location: Nottingham

Help to place text middle vertical in a DIV

Post by Rippie »

Hi everyone,

I have a DIV with a height of 25px. How do i place my text in the middle of that div ? Would i be using line-height 25px ?

Rippie
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Help to place text middle vertical in a DIV

Post by kaszu »

Don't know if you would, but I would.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Help to place text middle vertical in a DIV

Post by pickle »

Ya, that's the easiest.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply