How to center objects / text verticaly in my div?

Hello guys

I have this page:

http://www.teachmenow.com.br/guardasol/cardapio.html

as you can see, the word " menu " on the left is not centered verticaly, how to do that. I tried many things but any success so far.

thanks
Alex
LVL 1
hidrauAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim RiddlesPrepress/OMS SpecialistCommented:
Actually, the word "Menus" in the upper left of your page is centered, within it's container.  You have assigned the containing DIV a class of voltamenu.  That class is defined in CSS as follows:
.voltamenu {
    width: 100px;
    height: 70px;
    float: left;
    text-align: center;
}

Open in new window

You have defined the containing box for your H3 tag as a fixed width, and set to float left.  The page is doing exactly what you told it to do.

What is the final output you are trying to achieve?
0
Julian HansenCommented:
You can add this rule

.voltamenu h3 {
	line-height: 70px;
}

Open in new window

1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim RiddlesPrepress/OMS SpecialistCommented:
Ah, missed the part about vertically centered.  Good catch Julian.
0
hidrauAuthor Commented:
Thanks a lot for your help
0
Julian HansenCommented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.