Vertical Align Text in

This requires the following elements:

line-height: NUMBERpx;
vertical-align: middle;

Here’s an example:

#header {
  background-color: #000;
  background-image: url('cosby.jpg');
  background-repeat: no-repeat;
  vertical-align: middle;
  line-height: 72px;
  color: #fff;
  font-size: 30px;
  font-family: Georgia, serif; }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.