2 replies [Last post]
blurr
blurr's picture
User offline. Last seen 1 year 24 weeks ago. Offline
newbie
Timezone: GMT-4
Joined: 2010-08-18
Posts: 1
Points: 2

Hello -

I have a list of menu items that run horizontally. In this list I need to center the items vertically. Some items are only one line of text, some are two lines of text.

See the attached image to see what I'm trying to describe...

I would just need to center the text vertically - how do I do this?

Thank You.

AttachmentSize
Screen shot 2010-08-18 at 5.25.12 PM.png10.95 KB
CupidsToejam
CupidsToejam's picture
User offline. Last seen 2 weeks 1 day ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

The image you provided, the

The image you provided, the text is centered.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

Tyssen
Tyssen's picture
User offline. Last seen 12 hours 16 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8123
Points: 1302

blurr wrote: I would just

blurr wrote:

I would just need to center the text vertically - how do I do this?

Me, personally, I wouldn't do it cos I reckon it'd look crap, but you'd need to apply different classes to the anchors with two lines of text and then use either different padding or line-height for them.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference