...

View Full Version : HTML/CSS - vertical aligning a title.



forcerhpool
12-16-2009, 11:05 PM
I'm trying to have the title of my div to be dead centre vertically. e.g..

<div id="header">Title</div>

Title shows at the bottom of the div, how can i have it centered?

Excavator
12-16-2009, 11:40 PM
Hello forcerhpool,
The quick answer might be <div id="header"><h1>Title</h1></div> and #header h1 {line-height: 20px;}


Adjust that line-height as needed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum