• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1511
  • Last Modified:

Why vertical-align doesn't work in CSS/HTML?

Why this snippet doesn't align the text vertically?
<html>
 
<div style="height: 200px; width: 200px; vertical-align: middle; background: green; text-align: center;">works?</div>
 
</html>

Open in new window

0
technoparkcorp
Asked:
technoparkcorp
1 Solution
 
bombozamaCommented:
I had the same question some time ago:

Check this out:
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html

Hope it helps
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now