Hello,
I'm trying to vertically align my text inside a div. The div itself is inside a table cell. But the text is not vertically aligned.
Here's a screen shot of the HTML after hitting F12 in IE:
The div I'm interested in is the one with id="moduleTemplate0".
Here is the CSS:
Can anyone tell me why vertical-align: middle isn't working in .moduleBorder?Code:table.gridTable { animation-duration: 1s; animation-name: activateObjective; animation-timing-function: ease-in; animation-iteration-count: 1; } .gridModuleNameColumn { background-color: #0072C5; padding-left: 0px; /*10px;*/ padding-right: 0px; /*10px;*/ padding-top: 0; padding-bottom: 0; margin: 0; position: relative; width: 240px; /*border-top: 1px solid black; border-left: 1px solid black;*/ } .gridModuleNameColumn > div.textStyle { font-size: 1.3em; color: #FFFFFF; } .moduleBorder { height: 43px; border-top: 1px solid black; border-left: 1px solid black; padding-left: 10px; vertical-align: middle; }



Reply With Quote

Bookmarks